Skip to content

Commit

Permalink
chore: replace QueryResult test 3 with 7
Browse files Browse the repository at this point in the history
Remove `QueryResult` test 3 (it is a duplicate of `query_result_with_error`),
and move test 7 into its place.
  • Loading branch information
indiv0 committed Dec 17, 2016
1 parent d79ed2e commit a3f03b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
3 changes: 1 addition & 2 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ mod tests {
fn test_query_result_deserializer() {
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_1.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_2.xml")).unwrap();
//from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_3.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_3.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_4.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_5.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_6.xml")).unwrap();
from_str::<QueryResult>(&read_sample_data_from_path("tests/sample-data/query_result_7.xml")).unwrap();
}

#[test]
Expand Down
23 changes: 16 additions & 7 deletions tests/sample-data/query_result_3.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<queryresult success='false' error='true' numpods='0'
datatypes='' timedout='' timing='0.066' parsetiming='0'>
<error>
<code>2</code>
<msg>Appid missing</msg>
</error>
<queryresult success='false'
error='false'
numpods='0'
datatypes=''
timedout=''
timedoutpods=''
timing='4.739'
parsetiming='0.14400000000000002'
parsetimedout='false'
recalculate=''
id=''
host='http://www5b.wolframalpha.com'
server='35'
related=''
version='2.6'>
<languagemsg english='Wolfram|Alpha does not yet support Slovak.' />
</queryresult>
17 changes: 0 additions & 17 deletions tests/sample-data/query_result_7.xml

This file was deleted.

0 comments on commit a3f03b7

Please sign in to comment.