summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-04-19 03:19:19 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-04-19 03:19:19 -0400
commit76f5fef8e35d5698d163c062fe2082f8949491f6 (patch)
tree992fdc6465d488965228f9f3aa81b365d9981035 /tests
parent004344f765e0a7471139c44562bc38af8ca8191b (diff)
downloadget-76f5fef8e35d5698d163c062fe2082f8949491f6.tar.gz
renamed test structs
Diffstat (limited to 'tests')
-rw-r--r--tests/get.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/get.rs b/tests/get.rs
index efa4198..b446ff4 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -7,14 +7,14 @@ macro_rules! testcase {
}
#[derive(Get)]
-pub struct CatStruct<'a, T> {
+pub struct Cat<'a, T> {
name: &'a str,
age: u64,
owner: T,
}
#[derive(Get)]
-pub struct CatTupleStruct<'a, T>(
+pub struct CatTuple<'a, T>(
#[get(method = "name")] &'a str,
#[get(method = "age")] u64,
#[get(method = "owner")] T,
@@ -22,7 +22,7 @@ pub struct CatTupleStruct<'a, T>(
#[test]
fn cat_struct() {
- let cat = CatStruct {
+ let cat = Cat {
name: "cat",
age: 1,
owner: (),
@@ -34,7 +34,7 @@ fn cat_struct() {
#[test]
fn cat_tuple_struct() {
- let cat = CatTupleStruct("cat", 1, ());
+ let cat = CatTuple("cat", 1, ());
assert_eq!(*cat.name(), "cat");
assert_eq!(*cat.age(), 1);
assert!(matches!(cat.owner(), ()));