Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsturzl committed Mar 4, 2017
1 parent 63574e5 commit dba7706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tf_idf_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fn test_basic_usage() {
tf_idf.add("this document is about erlang and rust.");
tf_idf.add("this document is about rust. it has rust examples");

assert_eq!(tf_idf.get("rust erlang"), 0.2993708f32 );
assert_eq!(tf_idf.get("rust"), 0.2993708f32 );
assert!(tf_idf.get("rust") > tf_idf.get("erlang"));
}

0 comments on commit dba7706

Please sign in to comment.