Browse Source

Move to highhash and fix tests

master
NGnius 3 years ago
parent
commit
ce31f89fb9
4 changed files with 5 additions and 5 deletions
  1. +2
    -2
      Cargo.toml
  2. +1
    -1
      src/techblox/murmur.rs
  3. +1
    -1
      tests/robocraft_factory.rs
  4. +1
    -1
      tests/robocraft_factory_simple.rs

+ 2
- 2
Cargo.toml View File

@@ -24,7 +24,7 @@ ureq = { version = "^2", features = ["json"], optional = true}
base64 = "^0.13"
num_enum = "^0.5"
chrono = {version = "^0.4", optional = true}
fasthash = {version = "^0.4", optional = true}
highhash = {version = "^0.1", optional = true}
half = {version = "^1.7", optional = true}
libfj_parsable_macro_derive = {version = "0.5.3", optional = true}
#libfj_parsable_macro_derive = {path = "./parsable_macro_derive", optional = true}
@@ -38,5 +38,5 @@ tokio = { version = "1.4.0", features = ["macros"]}
simple = ["ureq"]
robocraft = ["reqwest"]
cardlife = ["reqwest"]
techblox = ["chrono", "fasthash", "half", "libfj_parsable_macro_derive"]
techblox = ["chrono", "highhash", "half", "libfj_parsable_macro_derive"]
convert = ["obj", "genmesh"]

+ 1
- 1
src/techblox/murmur.rs View File

@@ -1,4 +1,4 @@
use fasthash::murmur3::hash32_with_seed;
use highhash::murmur::hash32_with_seed;
use std::sync::mpsc::{channel, Sender};
use std::thread;



+ 1
- 1
tests/robocraft_factory.rs View File

@@ -78,7 +78,7 @@ async fn robocraft_factory_custom_query() -> Result<(), ()> {
#[tokio::test]
async fn robocraft_factory_player_query() -> Result<(), ()> {
let result = builder()
.text("Baerentoeter".to_string())
.text("MilanZhi".to_string()) // there is a featured robot by this user, so this should never fail
.text_search_type(robocraft::FactoryTextSearchType::Player)
.items_per_page(10)
.send().await;


+ 1
- 1
tests/robocraft_factory_simple.rs View File

@@ -58,7 +58,7 @@ fn robocraft_factory_custom_query_simple() -> Result<(), ()> {
#[cfg(all(feature = "simple", feature = "robocraft"))]
fn robocraft_factory_player_query() -> Result<(), ()> {
let result = builder()
.text("Baerentoeter".to_string())
.text("MilanZhi".to_string()) // there is a featured robot by this user, so this should never fail
.text_search_type(robocraft::FactoryTextSearchType::Player)
.items_per_page(10)
.send();


Loading…
Cancel
Save