INNER CODE UNIT · Rust

it_works

obmarg/cynic · cynic-parser/src/lib.rs:66

    fn it_works() {
        insta::assert_snapshot!(
            parse_type_system_document("schema { query:Query }").unwrap().to_sdl_pretty(),
            @r###"
        schema {
          query: Query
        }
        "###
        );
    }

    #[test]
    fn test_basic_object() {
        insta::assert_snapshot!(
            parse_type_system_document(r#"
                type MyType implements Blah & Bloo @hello {
                    field: Whatever @hello(name: ["string"]),
                    other: [[Int!]]!

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…