[Qgis-developer] Failed tests
Paolo Cavallini
cavallini at faunalia.it
Wed Jan 25 07:03:30 EST 2012
Il 25/01/2012 12:55, Martin Dobias ha scritto:
> Execute the test directly: instead of running 'make test' in your
> build directory run './output/bin/qgis_expressiontest'
Thanks Martin.
Here we are:
********* Start testing of TestQgsExpression *********
Config: Using QTest library 4.7.4, Qt 4.7.4
PASS : TestQgsExpression::initTestCase()
QDEBUG : TestQgsExpression::parsing(empty string) Parser error: "syntax error,
unexpected $end"
QDEBUG : TestQgsExpression::parsing(invalid character) Parser error: "syntax error,
unexpected Unknown_CHARACTER"
QDEBUG : TestQgsExpression::parsing(invalid column reference) Parser error: "syntax
error, unexpected COLUMN_REF, expecting $end"
QDEBUG : TestQgsExpression::parsing(invalid binary operator) Parser error: "syntax
error, unexpected $end"
QDEBUG : TestQgsExpression::parsing(invalid function no params) Parser error:
"syntax error, unexpected $end, expecting '('"
QDEBUG : TestQgsExpression::parsing(invalid function not known) Parser error:
"syntax error, unexpected '(', expecting $end"
QDEBUG : TestQgsExpression::parsing(invalid operator IN) Parser error: "syntax
error, unexpected COLUMN_REF, expecting '('"
QDEBUG : TestQgsExpression::parsing(empty node list) Parser error: "syntax error,
unexpected ')'"
QDEBUG : TestQgsExpression::parsing(invalid sqrt params) Parser error: "Function is
called with wrong number of arguments"
QDEBUG : TestQgsExpression::parsing(special column as function) Parser error:
"syntax error, unexpected '(', expecting $end"
QDEBUG : TestQgsExpression::parsing(unknown special column) Parser error: "Special
column is not known"
QDEBUG : TestQgsExpression::parsing(null) Parsed string: "NULL"
QDEBUG : TestQgsExpression::parsing(int literal) Parsed string: "1"
QDEBUG : TestQgsExpression::parsing(float literal) Parsed string: "1"
QDEBUG : TestQgsExpression::parsing(string literal) Parsed string: "'test'"
QDEBUG : TestQgsExpression::parsing(column reference) Parsed string: "my_col"
QDEBUG : TestQgsExpression::parsing(quoted column) Parsed string: "my col"
QDEBUG : TestQgsExpression::parsing(unary minus) Parsed string: "- - 3"
QDEBUG : TestQgsExpression::parsing(function) Parsed string: "cos(0)"
QDEBUG : TestQgsExpression::parsing(function2) Parsed string: "atan2(0, 1)"
QDEBUG : TestQgsExpression::parsing(operator IN) Parsed string: "x IN (a, b)"
QDEBUG : TestQgsExpression::parsing(pow) Parsed string: "2 ^ 8"
QDEBUG : TestQgsExpression::parsing($id) Parsed string: "$id + 1"
QDEBUG : TestQgsExpression::parsing(arithmetics) Parsed string: "1 + 2 * 3"
QDEBUG : TestQgsExpression::parsing(logic) Parsed string: "be OR NOT be"
QDEBUG : TestQgsExpression::parsing(conditions +1) Parsed string: "CONDITION:
- WHEN x THEN y
"
QDEBUG : TestQgsExpression::parsing(conditions +2) Parsed string: "CONDITION:
- WHEN x THEN y
- ELSE z"
QDEBUG : TestQgsExpression::parsing(conditions +3) Parsed string: "CONDITION:
- WHEN x THEN y
- WHEN a THEN b
"
QDEBUG : TestQgsExpression::parsing(conditions +4) Parsed string: "CONDITION:
- WHEN x THEN y
- WHEN a THEN b
- ELSE z"
QDEBUG : TestQgsExpression::parsing(conditions -1) Parser error: "syntax error,
unexpected END, expecting WHEN"
QDEBUG : TestQgsExpression::parsing(conditions -2) Parser error: "syntax error,
unexpected WHEN"
QDEBUG : TestQgsExpression::parsing(conditions -3) Parser error: "syntax error,
unexpected $end, expecting WHEN"
QDEBUG : TestQgsExpression::parsing(conditions -4) Parser error: "syntax error,
unexpected COLUMN_REF"
QDEBUG : TestQgsExpression::parsing(conditions -5) Parser error: "syntax error,
unexpected COLUMN_REF, expecting WHEN"
PASS : TestQgsExpression::parsing()
FAIL! : TestQgsExpression::evaluation(literal double) Compared doubles are not the
same (fuzzy compare)
Actual (res.toDouble()): 1
Expected (result.toDouble()): 1,2
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
FAIL! : TestQgsExpression::evaluation(unary minus double) Compared doubles are not
the same (fuzzy compare)
Actual (res.toDouble()): -1
Expected (result.toDouble()): -1,3
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
QDEBUG : TestQgsExpression::evaluation(unary minus text) "Unary minus only for
numeric values."
QDEBUG : TestQgsExpression::evaluation(unary minus null) "Unary minus only for
numeric values."
FAIL! : TestQgsExpression::evaluation(plus double) Compared doubles are not the same
(fuzzy compare)
Actual (res.toDouble()): 2
Expected (result.toDouble()): 2,3
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
QDEBUG : TestQgsExpression::evaluation(plus invalid) "Cannot convert 'foo' to double"
FAIL! : TestQgsExpression::evaluation(minus double) Compared doubles are not the
same (fuzzy compare)
Actual (res.toDouble()): 2
Expected (result.toDouble()): 2,1
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
FAIL! : TestQgsExpression::evaluation(mul double) Compared doubles are not the same
(fuzzy compare)
Actual (res.toDouble()): 10
Expected (result.toDouble()): 10,5
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
FAIL! : TestQgsExpression::evaluation(mod double) Compared doubles are not the same
(fuzzy compare)
Actual (res.toDouble()): 0
Expected (result.toDouble()): 1,1
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(284)]
QDEBUG : TestQgsExpression::evaluation(invalid and) "Cannot convert 'foo' to boolean"
QDEBUG : TestQgsExpression::evaluation(invalid or) "Cannot convert 'foo' to boolean"
QDEBUG : TestQgsExpression::evaluation(invalid not) "Cannot convert 'foo' to boolean"
QDEBUG : TestQgsExpression::evaluation(invalid sqrt value) "Cannot convert 'a' to
double"
FAIL! : TestQgsExpression::evaluation(double to text) Compared values are not the same
Actual (res.toString()): 1
Expected (result.toString()): 1.23
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(287)]
QDEBUG : TestQgsExpression::evaluation(regexp_replace invalid) "Invalid regular
expression '[[[': unexpected end"
FAIL! : TestQgsExpression::evaluation(implicit double->text) Compared values are not
the same
Actual (res.toInt()): 1
Expected (result.toInt()): 4
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(281)]
FAIL! : TestQgsExpression::evaluation(implicit double->bool) Compared values are not
the same
Actual (res.toInt()): 0
Expected (result.toInt()): 1
Loc: [/storage/build/Quantum-GIS/tests/src/core/testqgsexpression.cpp(281)]
PASS : TestQgsExpression::eval_columns()
PASS : TestQgsExpression::eval_rownum()
PASS : TestQgsExpression::eval_feature_id()
PASS : TestQgsExpression::referenced_columns()
PASS : TestQgsExpression::needs_geometry()
PASS : TestQgsExpression::eval_geometry()
PASS : TestQgsExpression::eval_geometry_calc()
PASS : TestQgsExpression::cleanupTestCase()
Totals: 10 passed, 9 failed, 0 skipped
********* Finished testing of TestQgsExpression *********
--
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
More information about the Qgis-developer
mailing list