Checks lightning animation, chain timing, cloud placement and diagnostic cancellation.
Subsystem: Weather, clouds, lightning and atmospheric visibility
Fixture/harness: lightningtimingtests
Setup: The standalone LightningTimingTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/LightningTimingTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.
CloudLightningDiagnosticTests.h
Source: Tests/CloudLightningDiagnosticTests.h
Check Cleared
Fixture: Lightning Timing tests
Case symbol: CheckCleared
Source: Tests/CloudLightningDiagnosticTests.h:51
- Test
- Check Cleared: cloud diagnostic remained armed after stop; stopped cloud diagnostic retained active illumination.
Source check messages (including original failure wording)
-
cloud diagnostic remained armed after stop
-
stopped cloud diagnostic retained active illumination
Prime
Fixture: Lightning Timing tests
Case symbol: Prime
Source: Tests/CloudLightningDiagnosticTests.h:85
- Test
- Support check: establishes a real flash and active illumination before exercising diagnostic reset paths.
Source check messages (including original failure wording)
-
cloud diagnostic reset fixture did not first create a real flash
-
cloud diagnostic reset fixture had no active illumination
Wall Clock Tests
Fixture: Lightning Timing tests
Case symbol: WallClockTests
Source: Tests/CloudLightningDiagnosticTests.h:96
- Test
- Checks wall-clock scheduling, ignoring duplicate timestamps and duplicate start-time event requests.
Source check messages (including original failure wording)
-
start-time duplicate generated a diagnostic event
-
wall-time fixture did not generate its initial event
-
duplicate timestamps charged the diagnostic clock
-
duplicate or backward time advanced a flash
-
diagnostic expired before 30 wall-clock seconds
-
wall-clock diagnostic lost its two-per-second schedule
-
expired diagnostic replayed after the deadline
-
a long pause disarmed the test or replayed its missed event backlog
-
pause recovery kept an old or backdated chain
-
pause recovery did not leave exactly one fresh chain
-
pause recovery duplicate generated or advanced a chain
-
late pause recovery lost the original deadline or replayed a backlog
-
resume after the deadline generated a stale diagnostic event
-
restart retained a previous diagnostic chain
-
restart retained the old expiration deadline
-
restarted test expired before its new 30-second deadline
Cloud Lightning Diagnostic Tests
Fixture: Lightning Timing tests
Case symbol: CloudLightningDiagnosticTests
Source: Tests/CloudLightningDiagnosticTests.h:176
- Test
- Checks diagnostic arming, source placement, bounded spawn range and placement at poles/seams while retaining legacy flash position behavior.
Source check messages (including original failure wording)
-
source placement changed the legacy flash position
-
unarmed cloud diagnostic generated a flash
-
diagnostic source escaped its 100 km spawn cap or failed at a pole/seam
-
diagnostic manufactured illumination outside actual cloud density
-
diagnostic changed the existing strong-storm energy/radius envelope
-
diagnostic diverged from the shared lightning animation
-
quiet diagnostic fixture accidentally contained natural storm eligibility
-
diagnostic exceeded its four-event cap
-
diagnostic geometry case was vacuous
-
diagnostic cap checks did not exercise displaced sources
-
diagnostic did not produce the immediate event plus two events per second
-
diagnostic event depends on frame cadence
-
diagnostic cadence comparison contained no active flash
-
moving the ship changed an existing flash beyond its own fixed-path animation
-
planet-fixed movement check contained no active source
-
new diagnostic flash did not follow the new ship subpoint
-
movement fixture did not produce a flash at the new subpoint
-
diagnostic re-armed itself
-
zero elapsed time disarmed the diagnostic
-
zero elapsed time advanced a diagnostic flash
-
diagnostic expired before its 30-second lifetime
-
diagnostic created a flash in an empty density envelope
-
empty layer retained diagnostic illumination
-
diagnostic changed natural event counts
-
diagnostic changed natural RNG, source, strength or animation
-
natural independence comparison was vacuous
CloudLightningPlacementTests.h
Source: Tests/CloudLightningPlacementTests.h
Check Playback
Fixture: Lightning Timing tests
Case symbol: CheckPlayback
Source: Tests/CloudLightningPlacementTests.h:56
- Test
- Checks cloud-chain timing agrees with the shared below-cloud sequence and cloud light follows the active chain section.
Source check messages (including original failure wording)
-
cloud-chain timing differs from the shared below-cloud sequence
-
cloud light did not follow the active chain section
Cloud Lightning Placement Tests
Fixture: Lightning Timing tests
Case symbol: CloudLightningPlacementTests
Source: Tests/CloudLightningPlacementTests.h:70
- Test
- Checks lightning sources lie inside cloud moisture and select the highest occupied lobe, including thin upper-lobe fixtures.
Source check messages (including original failure wording)
-
thin upper-lobe regression fixture was not found within its bounded search
-
upper-lobe source is outside cloud moisture
-
source skipped the highest occupied lobe and fell into a lower deck
-
upper-lobe regression still uses the old fixed kilometre offset
-
cloud chain section count escaped its bound
-
cloud chain changed the shared single-bolt duration range
-
cloud chain duration is not an exact section multiple
-
cloud-contained section exceeded the approved horizontal or vertical hop bounds
-
cloud-only lightning created a ground-contact section
-
cloud chain lost spatial continuity
-
cloud chain crosses a clear pocket between occupied endpoints
-
cloud chain left the established cloud altitude envelope
-
cloud chain depends on frame segmentation
-
frame-stepped illumination retained a previous section position
-
cloud chain containment fixture did not exercise a connected chain
CloudLightningTests.h
Source: Tests/CloudLightningTests.h
Cloud Lightning Tests
Fixture: Lightning Timing tests
Case symbol: CloudLightningTests
Source: Tests/CloudLightningTests.h:3
- Test
- Cloud Lightning Tests: no lightning before convection arrives; calm stratus does not generate lightning; lightning follows the blended weather, not a newly uploaded endpoint.
Source check messages (including original failure wording)
-
no lightning before convection arrives
-
calm stratus does not generate lightning
-
lightning follows the blended weather, not a newly uploaded endpoint
-
global Poisson schedule averages 100 flashes per second
-
event schedule is independent of frame rate
-
finite bounded flash pulses
-
scheduled cloud flash ignored shared timing constants
-
scheduled cloud flash diverged from the ground-bolt envelope
-
cloud flash age or brightness depends on frame rate
-
active cloud-chain source left its local occupied cloud layer
-
disconnect clears active lightning
-
resume skips a long backlog instead of replaying an hour of lightning
-
organic placement changed event identity, birth timing or strength
-
organic shape preserves lightning event schedule
-
organic/legacy scheduling comparison did not exercise enough event births
-
organic flash is embedded in moisture
-
organic placement diverged from the shared chain timing
-
organic lightning placement exercised active strikes
-
weather resolution does not change global distribution mass
-
spherical samples lie on the unit sphere
-
area weighting avoids equirectangular polar bias
-
visible flash fraction follows the shrinking horizon cap
-
strongest convection receives the cubic-weighted share of flashes
-
cloud and ground timing selection differs
-
cloud and ground peaks differ for the same strike seed
-
cloud return-stroke gap lost the shared afterglow
-
cloud flash outlived the shared duration
-
cloud mean duration diverged from shared tuning
-
cloud mean stroke count diverged from shared tuning
CloudOrganicGrowthTests.h
Source: Tests/CloudOrganicGrowthTests.h
Cloud Organic Growth Tests
Fixture: Lightning Timing tests
Case symbol: CloudOrganicGrowthTests
Source: Tests/CloudOrganicGrowthTests.h:22
- Test
- Checks signed periodic Perlin detail, density byte mapping/endpoints and monotonic growth within the configured convection envelope.
Source check messages (including original failure wording)
-
bounded Perlin gradient field
-
periodic Perlin gradient field
-
Perlin detail contains both signs
-
cloud envelope changed byte mapping or endpoints
-
convection envelope must grow monotonically within 22 km
-
weak convection must retain the shallow calm deck
-
finite bounded cloud density
-
more convection cannot erase a pre-existing lobe or wisp
-
quiet weather produced a tall tower
-
upper-cloud refinement changed the preserved below-deck medium
-
weather checks must sample occupied lobes and clear gaps
-
strong convection must still support towers above 18 km
-
blended convection lowered the regional envelope or escaped the maximum height
-
increasing blended convection removed an existing cloud billow
-
blended convection produced invalid density
-
increasing blended convection lowered the sampled visible top
-
weather-height monotonicity comparison contained too few growing formations
-
calm sheet produced invalid density
-
calm sheet lost density while convection increased
-
calm sheet escaped its weather envelope
LightningChainTests.h
Source: Tests/LightningChainTests.h
Test Lightning Chain
Fixture: Lightning Timing tests
Case symbol: TestLightningChain
Source: Tests/LightningChainTests.h:2
- Test
- Checks packet chain counts, full-chain growth and continuous spatial/growth boundaries between adjacent sections.
Source check messages (including original failure wording)
-
packet chain count mapped incorrectly
-
growth does not span entire chain
-
seeded chain is unstable
-
adjacent sections have a spatial or growth gap
-
chain does not have exactly one ground contact at packet position
-
invalid chain segment
-
segment growth endpoints wrong
-
cloud hop left its cloud layer
-
leader did not traverse chain in order
-
render mesh detached from chain junction
-
cloud thunder source is not on the audible channel
-
untrusted chain count not bounded
-
invalid world endpoints accepted
-
chain duration is not an exact bolt multiple
-
section did not receive its own complete flash envelope
-
scene illumination stayed at a different section
-
sequence lost packet identity or approved stroke count
-
section did not preserve the sampled bolt duration
-
expired chain continued flashing
-
pause replayed skipped chain sections
-
first section ended prematurely
-
invalid frame time advanced sequence
-
chain playback depends on frame rate
LightningStrikeAnimationTests.h
Source: Tests/LightningStrikeAnimationTests.h
Test Bolt Animation
Fixture: Lightning Timing tests
Case symbol: TestBoltAnimation
Source: Tests/LightningStrikeAnimationTests.h:6
- Test
- Checks stable strike identity and frame-rate-independent flash timing, bounded growth and pulse values.
Source check messages (including original failure wording)
-
animation changed strike identity and would rebuild its branches
-
flash depends on frame rate/history
-
invalid/retracted lightning growth or pulse
-
formed branches vanished between return strokes
-
wrong return-stroke count or stuck flash
-
invalid frame time advanced strike
-
long frame replayed stale flashes
-
return stroke has no readable hold
-
new strike inherited the previous animation
-
burst ignored shared stroke-count bounds
-
complete flash exceeded the shared duration budget
-
flash lost its minimum readable phase
-
return strokes overlapped or erased their gap
-
seeded stroke missed its peak
-
branches did not hold through a return-stroke gap
-
burst did not end at its complete duration
-
mean burst duration drifted from shared tuning
-
flash count is not balanced across the shared stroke range
-
bursts lost their range or irregular cadence
LightningTimingTests.cpp
Source: Tests/LightningTimingTests.cpp
Setup/dispatch source: named verification groups are documented under the associated case files.