snapshot of https://github.com/ActivityWatch/aw-server-rust.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / ubuntu-latest (push) Failing after 5s
Build / Android (push) Failing after 2s
Build / Code coverage (push) Failing after 2s
Lint / format (push) Failing after 3s
Lint / clippy (push) Failing after 3s
Build / macOS-latest (push) Has been cancelled
Build / windows-latest (push) Has been cancelled
Some checks failed
Build / ubuntu-latest (push) Failing after 5s
Build / Android (push) Failing after 2s
Build / Code coverage (push) Failing after 2s
Lint / format (push) Failing after 3s
Lint / clippy (push) Failing after 3s
Build / macOS-latest (push) Has been cancelled
Build / windows-latest (push) Has been cancelled
This commit is contained in:
15
aw-server/tests/macros.rs
Normal file
15
aw-server/tests/macros.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
#[macro_use]
|
||||
extern crate serde_json;
|
||||
|
||||
#[macro_use]
|
||||
extern crate aw_server;
|
||||
|
||||
#[cfg(test)]
|
||||
mod macros_tests {
|
||||
#[test]
|
||||
fn test_json_map() {
|
||||
json_map! {};
|
||||
json_map! {"a": json!(1)};
|
||||
json_map! {"a": json!(1), "b": json!(2)};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user