restructure: move el compiler content into lang/

This commit is contained in:
Will Anderson
2026-05-05 01:38:51 -05:00
parent ce68f91a38
commit 1ae68962cf
143 changed files with 0 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// no-cycle.el NoCycleCalendar's cycle_phase returns NaN sentinel.
// Detection via float_to_str NaN renders as "nan" under %g.
fn run_test() -> Int {
let cal: Calendar = no_cycle_calendar()
let i: Instant = unix_seconds(1000000000)
let ct: CalendarTime = in_calendar(i, cal)
let p: Float = cal_cycle_phase(ct)
let s: String = float_to_str(p)
if str_eq(s, "nan") {
return 1
}
return 0
}
fn main() -> Void {
println(int_to_str(run_test()))
}