940ea48784949da31ef87566475105948865d0fe,tests/test_parse.py,,test_select_bql,#,263
Before Change
[ast.Select(ast.SELQUANT_ALL,
[ast.SelColExp(ast.ExpBQLCorrel("c", "d"), None)],
[ast.SelTab("t", None)], None, None, None, None)]
assert parse_bql_string("select similarity to similarity to 0" +
" with respect to c from t;") == \
[ast.Select(ast.SELQUANT_ALL,
[ast.SelColExp(
ast.ExpBQLSim(ast.ExpBQLSim(ast.ExpLit(ast.LitInt(0)),
[ast.ColListLit(["c"])]),
[]),
None,
)],
[ast.SelTab("t", None)], None, None, None, None)]
with pytest.raises(Exception): // XXX Use a specific parse error.
parse_bql_string("select probability of x = 1 -" +
" probability of y = 0 from t;")
// XXX Should really be this test, but getting the grammar to
After Change
[ast.Select(ast.SELQUANT_ALL,
[ast.SelColExp(ast.ExpBQLCorrel("c", "d"), None)],
[ast.SelTab("t", None)], None, None, None, None)]
with pytest.raises(Exception):
parse_bql_string("select similarity to similarity to 0" +
" with respect to c from t;")
with pytest.raises(Exception): // XXX Use a specific parse error.
parse_bql_string("select probability of x = 1 -" +
" probability of y = 0 from t;")
// XXX Should really be this test, but getting the grammar to
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: probcomp/bayeslite
Commit Name: 940ea48784949da31ef87566475105948865d0fe
Time: 2015-01-06
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_parse.py
Class Name:
Method Name: test_select_bql
Project Name: probcomp/bayeslite
Commit Name: 1e4c92fe1267e1e8a3d5175d11bdf16e88551dbf
Time: 2017-02-22
Author: fsaad@mit.edu
File Name: tests/test_parse.py
Class Name:
Method Name: test_generative_similarity
Project Name: probcomp/bayeslite
Commit Name: ee57ab980eb20fbb471e6f3c3c35e21fa169e31c
Time: 2017-02-22
Author: fsaad@mit.edu
File Name: tests/test_parse.py
Class Name:
Method Name: test_select_bql