From c1d8a3780e473d1e829cc8c6cfe9d8bcf36a3956 Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:03:05 -0400 Subject: [PATCH] Use derive(ToJson) where possible Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- examples/count-vowels/count-vowels_wbtest.mbt | 0 pdk/http/method_test.mbt | 6 ++++++ 2 files changed, 6 insertions(+) delete mode 100644 examples/count-vowels/count-vowels_wbtest.mbt create mode 100644 pdk/http/method_test.mbt diff --git a/examples/count-vowels/count-vowels_wbtest.mbt b/examples/count-vowels/count-vowels_wbtest.mbt deleted file mode 100644 index e69de29..0000000 diff --git a/pdk/http/method_test.mbt b/pdk/http/method_test.mbt new file mode 100644 index 0000000..f849abe --- /dev/null +++ b/pdk/http/method_test.mbt @@ -0,0 +1,6 @@ +test "Method::to_json works as expected" { + let got = @http.GET.to_json().stringify() + let want = + #|"GET" + assert_eq!(got, want) +}