This website requires JavaScript.
Explore
Help
Sign In
Shikong
/
trpl-zh-cn
Watch
1
Star
0
Fork
0
You've already forked trpl-zh-cn
mirror of
https://github.com/KaiserY/trpl-zh-cn
synced
2025-02-23 21:02:18 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
trpl-zh-cn
/
listings
/
ch11-writing-automated-tests
/
listing-11-13
/
tests
/
integration_test.rs
8 lines
106 B
Rust
Raw
Permalink
Normal View
History
Unescape
Escape
update listings to catch up newest outputs and features of newest rust
2024-06-06 21:23:21 +08:00
use
adder
::
add_two
;
add listings code && update to ch02-00
2022-02-06 16:43:51 +08:00
#[
test
]
fn
it_adds_two
(
)
{
major update prepared for ch17
2024-10-20 23:44:05 +08:00
let
result
=
add_two
(
2
)
;
assert_eq!
(
result
,
4
)
;
add listings code && update to ch02-00
2022-02-06 16:43:51 +08:00
}
Reference in New Issue
Copy Permalink