diff --git a/tests/test.rs b/tests/test.rs index 11f8a31..fd9255c 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -200,7 +200,7 @@ fn test_floating() { #[test] fn test_char() { - let zero = '\0'; + let zero = '\u{1}'; let pound = '#'; let quote = '"'; let apost = '\''; @@ -210,23 +210,23 @@ fn test_char() { let tokens = quote! { #zero #pound #quote #apost #newline #heart }; - let expected = "'\\u{0}' '#' '\"' '\\'' '\\n' '\u{2764}'"; + let expected = "'\\u{1}' '#' '\"' '\\'' '\\n' '\u{2764}'"; assert_eq!(expected, tokens.to_string()); } #[test] fn test_str() { - let s = "\0 a 'b \" c"; + let s = "\u{1} a 'b \" c"; let tokens = quote!(#s); - let expected = "\"\\u{0} a 'b \\\" c\""; + let expected = "\"\\u{1} a 'b \\\" c\""; assert_eq!(expected, tokens.to_string()); } #[test] fn test_string() { - let s = "\0 a 'b \" c".to_string(); + let s = "\u{1} a 'b \" c".to_string(); let tokens = quote!(#s); - let expected = "\"\\u{0} a 'b \\\" c\""; + let expected = "\"\\u{1} a 'b \\\" c\""; assert_eq!(expected, tokens.to_string()); }