Skip to content

Commit

Permalink
readme tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 25, 2024
1 parent 2620ec2 commit cf9b35b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion crates/libs/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ version = "0.1.1"
path = "../result"

[dependencies.windows-strings]
version = "0.0.0"
version = "0.1.0"
path = "../strings"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ fn main() {
WaitForSingleObject(event, 0);
CloseHandle(event);
MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK);
MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK);
}
}
```
4 changes: 2 additions & 2 deletions crates/libs/sys/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ fn main() {
WaitForSingleObject(event, 0);
CloseHandle(event);
MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK);
MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK);
}
}
```
4 changes: 2 additions & 2 deletions crates/libs/windows/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ fn main() {
WaitForSingleObject(event, 0);
CloseHandle(event);
MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK);
MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK);
}
}
```
7 changes: 3 additions & 4 deletions crates/tests/readme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ version = "0.0.0"
edition = "2021"
publish = false

[lib]
doc = false
doctest = false

[dependencies.windows]
path = "../../libs/windows"
features = [
Expand Down Expand Up @@ -42,5 +38,8 @@ path = "../../libs/registry"
[dev-dependencies.windows-version]
path = "../../libs/version"

[dev-dependencies.windows-strings]
path = "../../libs/strings"

[dev-dependencies.cppwinrt]
path = "../../libs/cppwinrt"
3 changes: 2 additions & 1 deletion crates/tests/readme/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#![doc = include_str!("../../../../crates/libs/core/readme.md")]
#![doc = include_str!("../../../../crates/libs/cppwinrt/readme.md")]
#![doc = include_str!("../../../../crates/libs/metadata/readme.md")]
#![doc = include_str!("../../../../crates/libs/registry/readme.md")]
#![doc = include_str!("../../../../crates/libs/result/readme.md")]
#![doc = include_str!("../../../../crates/libs/strings/readme.md")]
#![doc = include_str!("../../../../crates/libs/sys/readme.md")]
#![doc = include_str!("../../../../crates/libs/targets/readme.md")]
#![doc = include_str!("../../../../crates/libs/version/readme.md")]
#![doc = include_str!("../../../../crates/libs/windows/readme.md")]
#![doc = include_str!("../../../../crates/libs/cppwinrt/readme.md")]

0 comments on commit cf9b35b

Please sign in to comment.