Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -1,24 +1,26 @@
|
|||
val .test = fn(.a, .b) join("\n", [
|
||||
$"not \.a;: \{not .a}",
|
||||
$"\.a; and \.b;: \.a and .b;",
|
||||
$"\.a; or \.b;: \.a or .b;",
|
||||
$"\.a; nand \.b;: \.a nand .b;",
|
||||
$"\.a; nor \.b;: \.a nor .b;",
|
||||
$"\.a; xor \.b;: \.a xor .b;",
|
||||
$"\.a; nxor \.b;: \.a nxor .b;",
|
||||
"",
|
||||
val test = fn(a, b) {
|
||||
join("\n", [
|
||||
"not {{a}}: {{not a}}",
|
||||
"{{a}} and {{b}}: {{a and b}}",
|
||||
"{{a}} nand {{b}}: {{a nand b}}",
|
||||
"{{a}} or {{b}}: {{a or b}}",
|
||||
"{{a}} nor {{b}}: {{a nor b}}",
|
||||
"{{a}} xor {{b}}: {{a xor b}}",
|
||||
"{{a}} nxor {{b}}: {{a nxor b}}",
|
||||
"",
|
||||
|
||||
"not? {{a}}: {{not? a}}",
|
||||
"{{a}} and? {{b}}: {{a and? b}}",
|
||||
"{{a}} nand? {{b}}: {{a nand? b}}",
|
||||
"{{a}} or? {{b}}: {{a or? b}}",
|
||||
"{{a}} nor? {{b}}: {{a nor? b}}",
|
||||
"{{a}} xor? {{b}}: {{a xor? b}}",
|
||||
"{{a}} nxor? {{b}}: {{a nxor? b}}",
|
||||
"\n",
|
||||
])
|
||||
}
|
||||
|
||||
$"not? \.a;: \{not? .a}",
|
||||
$"\.a; and? \.b;: \.a and? .b;",
|
||||
$"\.a; or? \.b;: \.a or? .b;",
|
||||
$"\.a; nand? \.b;: \.a nand? .b;",
|
||||
$"\.a; nor? \.b;: \.a nor? .b;",
|
||||
$"\.a; xor? \.b;: \.a xor? .b;",
|
||||
$"\.a; nxor? \.b;: \.a nxor? .b;",
|
||||
"\n",
|
||||
])
|
||||
|
||||
val .tests = [
|
||||
val tests = [
|
||||
[true, false],
|
||||
[false, true],
|
||||
[true, true],
|
||||
|
|
@ -32,6 +34,6 @@ val .tests = [
|
|||
[null, null],
|
||||
]
|
||||
|
||||
for .t in .tests {
|
||||
write .test(.t[1], .t[2])
|
||||
for t in tests {
|
||||
write test(t[1], t[2])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue