<M =/> S>. :|:
*/
outputMustContain("⏱ anticipate <(John ⨯ room_101) -> enter>.")// %1.00;0.81%")
}
// func testLoop() {
// // match> (#x1 <–> #x0) <=> (#x0 -> #x1) __ ({#x0} <–> {#x1}) <=> ({#x0} -> {#x1})
//
// let t1 = ("#x1" <-> "#x0") <=> ("#x0" --> "#x1")
// let t2 = ("{#x0}" <-> "{#x1}") <=> ("{#x0}" --> "{#x1}")
// let res = Term.logic_match(t1: t1, t2: t2)
// print(res)
// }
func testMultipleQuestions() {
nars.perform(
("bird" --> "animal")-*,
("dog" --> "person")-?,
.cycle(10),
("o" --> "x")-?,
.cycle(10),
("bird" --> "[flying]")-*,
("bird" --> "animal")-?,
.cycle(10),
("dog" --> "person")-*,
.cycle(10)
)
outputMustContain("💡 <bird -> animal>.")
outputMustContain("💡 <dog -> person>. %1.00;0.90%.")
}
func testMultiStep() {
nars.perform(
("a" --> "b")-*,
("b" --> "c")-*,
// ("a" --> "c")-?,
// .cycle(10),
("u" --> "v")-*,
("+y" --> "+z")-*,
("c" --> "d")-*,
// .cycle(5),
("a" --> "d")-?
// .cycle
// .pause
)
// print(nars.foobar)
// print(nars.memory)
// print("RECENT")
// print(nars.recent)
outputMustContain("💡 <a -> d>. %1.00;0.73%")
}
/*
func testBackward() {
let x = Term.$x
nars.perform(
(__.robin --> __.bird)-*,
(__.robin --> __.animal)-?,
.cycle(10),
("bird" --> "animal")-*,
// ("robin" --> "animal")-?, // TODO: this test should work with this line disabled
.cycle(10)
)
outputMustContain("💡 <robin -> animal>.")// %1.00;0.81%.ded")
}
*/
// func testCycle() throws {
// nars.cycle = true
// nars.perform(
nars.cycle = true
nars.perform(
https://api.github.com/maxeeem/NARS-Swift/blob/7247b2a26a89b13ad4518d784984c176995dc5d5/Tests/NARS-Tests/Single_Step.swift#L219