-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathparse.rs
More file actions
20 lines (18 loc) · 556 Bytes
/
Copy pathparse.rs
File metadata and controls
20 lines (18 loc) · 556 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![cfg(all(feature = "binary", feature = "json", feature = "ron"))]
use nanoserde::{DeBin, DeJson, DeRon, SerBin, SerJson, SerRon};
// https://github.com/not-fl3/nanoserde/issues/83
#[test]
fn test_trailing_comma() {
#[rustfmt::skip]
#[derive(Debug, DeBin, SerBin, DeJson, SerJson, DeRon, SerRon)]
enum TestEnum {
A
}
}
// https://github.com/not-fl3/nanoserde/issues/88
#[test]
fn test_empty_brackets() {
#[rustfmt::skip]
#[derive(SerJson, DeJson, SerBin, DeBin, SerRon, DeRon)]
enum Message { Goodbye, Greeting{} }
}