Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/foundation/coverage.txt

3.7 KiB, 1 run

created by r1870400018:63824, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1// A sweep of less common paths across the library.
2"aé😀".clusters()
3"aé😀".codepoints()
4"Å".normalize(form: "nfd").len()
5"fi".normalize(form: "nfkc")
6"a-b-c".split("-").rev()
7" x ".trim(at: start)
8"xxaxx".trim("x", repeat: false)
9"abab".trim(regex("ab"))
10"aaa".matches(regex("^a")).len()
11"cat bat".matches(regex("(\\w)at")).map(m => m.captures)
12"2024-01-02".match(regex("(\\d+)-(\\d+)-(\\d+)")).captures
13"ab".match(regex("(x)?b")).captures
14"hello".ends-with(regex("l+o"))
15"hello".ends-with(regex("l"))
16"abc".starts-with(regex("b"))
17!"x".repeat
18"abc".position("c")
19str(1.5)
20str(-3)
21str(255, base: 16)
22str(int)
23str(<lab>)
24str(version(1, 2))
25int("-12")
26int(3.9)
27int(-3.9)
28float("1e3")
29float(50%)
30calc.round(2.567, digits: 2)
31calc.round(-2.5)
32calc.pow(2.0, 0.5)
33calc.log(100)
34calc.log(8, base: 2)
35calc.quo(7, 2)
36calc.rem(-7, 2)
37calc.norm(3, 4)
38calc.norm(1, 2, 3, p: 3)
39calc.clamp(5, 0, 3)
40calc.binom(10, 3)
41calc.fact(10)
42calc.gcd(12, 18)
43calc.lcm(4, 6)
44calc.abs(-2pt)
45calc.abs(-30deg)
46!calc.max(1, 2pt)
47(1, (2, (3,))).flatten()
48(1, 2, 3, 4, 5).chunks(2)
49(1, 2, 3, 4, 5).chunks(2, exact: true)
50(1, 2, 3).windows(2)
51(1, 2, 3).intersperse(0)
52(1, 2, 3, 2).split(2)
53!((1, 2), (3, 4)).to-dict()
54(("a", 2), ("b", 4)).to-dict()
55array.range(3)
56range(10, 0, step: -3)
57bytes((1, 2, 3)).slice(1)
58bytes("é").len()
59array(bytes("é"))
60int.from-bytes(bytes((1, 0)))
61int.from-bytes(bytes((255, 255)), signed: false)
62(258).to-bytes(size: 2)
63(-1).to-bytes(size: 3, endian: "big")
64float.from-bytes(bytes((0, 0, 128, 63)))
65(1.5).to-bytes(size: 4)
66datetime(year: 2024, month: 2, day: 29).ordinal()
67datetime(year: 2024, month: 2, day: 29).weekday()
68datetime(year: 2024, month: 2, day: 29).display("[weekday], [month repr:long] [day padding:none]")
69datetime(hour: 13, minute: 5, second: 9).display("[hour repr:12]:[minute] [period]")
70datetime(year: 2024, month: 3, day: 1) - datetime(year: 2024, month: 2, day: 1)
71datetime(year: 2024, month: 1, day: 31) + duration(days: 1)
72duration(hours: 25).days()
73duration(weeks: 1, seconds: -1)
74numbering("1.a.i", 3, 2, 4)
75numbering("I", 1999)
76numbering("(1)", 5)
77numbering("*", 3)
78numbering("一", 12)
79numbering("A", 28)
80numbering("a", 0)
81numbering(n => n * 2, 3)
82luma(50%).components()
83rgb(red).components(alpha: false)
84red.to-hex()
85rgb("#abc")
86rgb("abcdef80")
87oklab(red).space()
88red.negate()
89red.darken(30%)
90blue.saturate(20%)
91blue.rotate(45deg)
92gradient.linear(..color.map.viridis).stops().len()
93gradient.radial(red, blue).sample(0%)
941pt.abs
95(1pt + 2em).em
96(10% + 3pt).ratio
97(left + top).x
98(left + top).y
99top.inv()
100ltr.sign()
101rtl.start()
102ttb.axis()
103center.axis()
104(2pt).pt()
105(72pt).inches()
106(1cm).mm()
107(90deg).rad()
108(1rad).deg()
109sym.arrow.r.long
110sym.arrow.r.long.bar
111sym.eq.not
112emoji.face.smile
113symbol("a", ("b", "c"))
114!symbol("x").x
115label("a b")
116<a.b-c:d>
117regex("a+b")
118version(0, 1, 2)
119type(1) == int
120type(type(1))
121repr(repr)
122repr((x) => x)
123arguments(1, a: 2)
124arguments(1, 2).pos()
125sys.version
126eval("1 + 1")
127eval("a b", mode: "markup")
128eval("x + 1", scope: (x: 2))
129!eval("1 +")
130!panic("boom", 1)
131!assert(1 == 2, message: "nope")
132!assert.eq(1, 2)
133!assert.ne(1, 1)
134calc.pow(0, -1)
135!calc.sqrt(-1)
136!calc.log(0)
137!calc.fact(-1)
138!calc.binom(-1, 2)
139!calc.quo(1, 0)
140!calc.rem(1, 0)
141!int("x")
142!int(1e30)
143!float("x")
144!str(1.5, base: 2)
145!"abc".at(5)
146!"é".slice(1)
147!(1, 2).at(3)
148!(a: 1).at("b")
149!().first()
150!range(1, 2, step: 0)
151!numbering("1", -1)
152!rgb("#xyz")
153!rgb(300, 0, 0)
154luma(120%)
155!color.mix(red, blue, green, space: color.hsl)
156!datetime(year: 2023, month: 2, day: 29)
157!datetime(hour: 25, minute: 0, second: 0)
158!bytes((256,))
159!version(-1)
160!symbol()
161!sym.arrow.foo
162!label("")
163!regex("(")
164!json(bytes("{"))
165luma()
166luma("x")
167!luma(50%, 20)
168luma(red)
169(1pt * float.inf)
170[#(-0.0)].text
171[#(-3)].text
172[#decimal("-1.5")].text
173[#version(1, 2)].text