Merge pull request #19 from SomeoneToIgnore/patch-1

Use proper World capitalization in the main example
This commit is contained in:
Mark Hildreth 2023-03-29 17:30:18 -04:00 committed by GitHub
commit 2573779967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ struct MyContext {
impl TestContext for MyContext {
fn setup() -> MyContext {
MyContext { value: "Hello, world!".to_string() }
MyContext { value: "Hello, World!".to_string() }
}
fn teardown(self) {
@ -27,7 +27,7 @@ impl TestContext for MyContext {
#[test_context(MyContext)]
#[test]
fn test_works(ctx: &mut MyContext) {
assert_eq!(ctx.value, "Hello, world!");
assert_eq!(ctx.value, "Hello, World!");
}
```
@ -44,7 +44,7 @@ struct MyAsyncContext {
#[async_trait::async_trait]
impl AsyncTestContext for MyAsyncContext {
async fn setup() -> MyAsyncContext {
MyAsyncContext { value: "Hello, world!".to_string() }
MyAsyncContext { value: "Hello, World!".to_string() }
}
async fn teardown(self) {