use of nars.test.TestNAR in project narchy by automenta.
the class NAL2Test method structureTransformation2.
@Test
public void structureTransformation2() throws nars.Narsese.NarseseException {
TestNAR tester = test;
// Bright is similar to smart.");
tester.believe("<bright <-> smart>", 0.9f, 0.9f);
// Is bright thing a type of smart thing?");
tester.ask("<[bright] --> [smart]>");
// Bright thing is a type of smart thing.");
tester.mustBelieve(cycles, "<[bright] --> [smart]>", 0.9f, 0.9f);
}
use of nars.test.TestNAR in project narchy by automenta.
the class NAL2Test method set_operations5Half.
@Test
public void set_operations5Half() {
TestNAR tester = test;
// .en("PlanetX is Mars, Pluto, or Venus.");
tester.believe("<{Mars,Pluto,Venus} --> planetX>", 1.0f, 0.9f);
// .en("PlanetX is either Mars or Venus.");
tester.mustBelieve(cycles, "<{Mars,Venus} --> planetX>", 1.0f, 0.81f);
}
use of nars.test.TestNAR in project narchy by automenta.
the class NAL2Test method comparison2.
@Test
public void comparison2() {
TestNAR tester = test;
// Sport is a type of competition.");
tester.believe("<sport --> competition>");
// Chess is a type of competition.");
tester.believe("<chess --> competition>", 0.9f, 0.9f);
// I guess chess is similar to sport.");
tester.mustBelieve(cycles, "<chess <-> sport>", 0.9f, 0.45f);
}
use of nars.test.TestNAR in project narchy by automenta.
the class NAL2Test method set_operations4.
@Test
public void set_operations4() {
TestNAR tester = test;
// .en("PlanetX is Mars, Pluto, or Venus.");
tester.believe("<[marsy,earthly,venusy] --> planetX>", 1.0f, 0.9f);
// .en("PlanetX is probably neither Pluto nor Saturn.");
tester.believe("<[earthly,saturny] --> planetX>", 0.1f, 0.9f);
// .en("PlanetX is Mars, Pluto, Saturn, or Venus.");
tester.mustBelieve(cycles * 2, "<[marsy,earthly,saturny,venusy] --> planetX>", 1.0f, 0.81f);
// .en("PlanetX is either Mars or Venus.");
tester.mustBelieve(cycles * 2, "<[marsy,venusy] --> planetX>", 0.90f, 0.81f);
}
use of nars.test.TestNAR in project narchy by automenta.
the class NAL2Test method setDefinition2.
@Test
public void setDefinition2() {
TestNAR tester = test;
// Smart thing is a type of bright thing.");
tester.believe("<[smart] --> [bright]>");
// Bright thing is similar to smart thing.");
tester.mustBelieve(cycles, "<[bright] <-> [smart]>", 1.0f, 0.9f);
}
Aggregations