We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02861d commit 3463c9bCopy full SHA for 3463c9b
tests/test_protocol_v7.rs
@@ -938,3 +938,9 @@ fn test_thread_id_format() {
938
assert_eq!(serde_json::from_str::<v7::ThreadId>("0").unwrap(), v7::ThreadId::Int(0));
939
assert_eq!(serde_json::from_str::<v7::ThreadId>("\"0\"").unwrap(), v7::ThreadId::String("0".into()));
940
}
941
+
942
+#[test]
943
+fn test_orientation() {
944
+ assert_eq!(serde_json::to_string(&v7::Orientation::Landscape).unwrap(), "\"landscape\"");
945
+ assert_eq!(serde_json::to_string(&v7::Orientation::Portrait).unwrap(), "\"portrait\"");
946
+}
0 commit comments