svoid test_AutoClassifier1() { int n = 2; // number of examples to learn for pos/neg - 2 actually work AutoClassifier1 c = new(S); c.noQ = true; c.start(); pnl("feature", assertNempty("features", c.getAllFeatures("hello"))); assertEmpty(c.confidentlyPredictedLabelsForObject("hello")); c.learn(takeFirst(n, ll("hello", "abcde", "xxxxx")), "5 chars"); c.learn(takeFirst(n, ll("bla", "abcd", "aa")), "not 5 chars"); //c.checkAllTheories(); assertEqualsICVerbose("5 chars", joinWithComma(c.confidentlyPredictedLabelsForObject("world"))); assertEqualsICVerbose("not 5 chars", joinWithComma(c.confidentlyPredictedLabelsForObject("......"))); }