This website works better with JavaScript.
Explore
Help
Register
Sign In
rust
/
trpl-zh-cn
mirror of
https://github.com/KaiserY/trpl-zh-cn
Watch
5
Star
0
Fork
You've already forked trpl-zh-cn
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
cb34be84b7
trpl-zh-cn
/
listings
/
ch11-writing-automated-tests
/
listing-11-13
/
tests
/
integration_test.rs
8 lines
106 B
Raw
Blame
History
use
adder
::
add_two
;
#[
test
]
fn
it_adds_two
(
)
{
let
result
=
add_two
(
2
)
;
assert_eq!
(
result
,
4
)
;
}
Reference in new issue
View Git Blame
Copy Permalink