mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
First test batch and associated fixes
The test runner is also nicer to use.
This commit is contained in:
parent
10084dec23
commit
82ce53be83
154 changed files with 1586 additions and 78 deletions
12
test/tests/custom text formatting.ans
Normal file
12
test/tests/custom text formatting.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
:person = "personne"
|
||||
|
||||
:$ format(p::is(person))
|
||||
p = p!value
|
||||
@"Name: {p("name")}\nAge: {p("age")}"
|
||||
|
||||
:$ Person(name, age)
|
||||
@{"name":name, "age":age}!type(person)
|
||||
|
||||
:abject = Person("Darmanin", 38)
|
||||
|
||||
|{abject}
|
||||
Loading…
Add table
Add a link
Reference in a new issue