Initial Dever 0.0.1

This commit is contained in:
Codex committed 2026-11-03 03:32:07 +00:00
commit 81233d098c
1479 files changed
+163782

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
textVerify() (answer: Bool) {
answer = text.trim(" 雪 ") == "雪" and text.lower("ÄBC") == "äbc" and text.upper("straße") == "STRASSE" and text.codepoint("🙂") == 128578 and text.fromCodepoint(128578) == "🙂" and text.fromCodepoint(-1) == null and text.at("a雪🙂", 2) == "🙂" and text.slice("a雪🙂", 1, 3) == "雪🙂" and text.slice("x", 2, 3) == null and text.indexOf("a🙂雪", "雪") == 2 and text.contains("雪🙂", "🙂") and text.startsWith("雪🙂", "雪") and text.endsWith("雪🙂", "🙂") and text.split("a🙂", "") == ["a", "🙂"] and text.replace("a雪a", "a", "b") == "b雪b" and text.isEmpty("") and not text.isEmpty("x") and text.join(["a", "雪", "🙂"], "/") == "a/雪/🙂" and text.join([], "/") == ""
}
numericVerify() (answer: Bool) {
answer = int.parse("9223372036854775807") == 9223372036854775807 and int.parse("9223372036854775808") == null and int.toText(-9223372036854775808) == "-9223372036854775808" and float.parse("1.25") == 1.25e0 and float.parse("Infinity") == null and float.toText(1.5e0) == "1.5" and float.fromInt(42) == 42e0 and decimal.parse("1.2300") == 1.23 and decimal.parse("NaN") == null and decimal.toText(1.2300) == "1.23" and decimal.fromInt(42) == 42.0 and decimal.round(1.25, 1) == 1.2 and decimal.round(250.0, -2) == 200.0 and math.sqrt(9e0) == 3e0 and math.sin(0e0) == 0e0 and math.cos(0e0) == 1e0 and math.log(1e0) == 0e0 and math.pow(2e0, 3e0) == 8e0 and math.isNan(math.sqrt(-1e0)) and math.isFinite(1e0) and math.isInfinite(math.pow(1e308, 2e0))
}
invalidRound() (value: Decimal) { value = decimal.round(1.0, 9223372036854775807) }
parseDecimal(value: Text) (answer: Decimal?) { answer = decimal.parse(value) }
formatDecimal(value: Decimal) (answer: Text) { answer = decimal.toText(value) }
roundDecimal(value: Decimal, places: Int) (answer: Decimal) { answer = decimal.round(value, places) }