acorn-lib 0.3.2

ACORN library
1
2
3
4
5
6
7
use super::LanguagesResponse;

#[test]
fn test_language_response_returns_deterministic_names() {
    let response: LanguagesResponse = serde_json::from_str(r#"{"Rust": 900, "Python": 100}"#).unwrap();
    assert_eq!(response.0.into_keys().collect::<Vec<_>>(), vec!["Python", "Rust"]);
}