Skip to content

Commit 989b786

Browse files
committed
adding in fixes for tests that showed up when I tried to run tests with Swift 6.1
1 parent 4784934 commit 989b786

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Lindenmayer/Examples/Examples3D.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,16 +422,16 @@ public enum Examples3D: Sendable {
422422
let upper: Float = 45.0
423423
let lower: Float = 15.0
424424

425-
if rng.p(0.5) {
425+
if await rng.p(0.5) {
426426
return [
427427
StaticStem2(length: 2),
428-
Modules.PitchDown(angle: Angle(degrees: Double(rng.randomFloat(in: lower ... upper)))),
428+
Modules.PitchDown(angle: Angle(degrees: Double(await rng.randomFloat(in: lower ... upper)))),
429429
Stem2(length: stem.length),
430430
]
431431
} else {
432432
return [
433433
StaticStem2(length: 2),
434-
Modules.PitchUp(angle: Angle(degrees: Double(rng.randomFloat(in: lower ... upper)))),
434+
Modules.PitchUp(angle: Angle(degrees: Double(await rng.randomFloat(in: lower ... upper)))),
435435
Stem2(length: stem.length),
436436
]
437437
}

docbuild.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export DOCC_JSON_PRETTYPRINT=YES
3737
--allow-writing-to-directory ./docs \
3838
generate-documentation \
3939
--fallback-bundle-identifier com.github.heckj.Lindenmayer \
40-
--fallback-bundle-version 0.7.2 \
40+
--fallback-bundle-version 0.7.3 \
4141
--target Lindenmayer \
4242
--target LindenmayerViews \
4343
--output-path ./docs \

0 commit comments

Comments
 (0)