You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-17 06:37:34 +02:00
Chromium: new subsection about gtest tests (#1551)
This commit is contained in:
committed by
GitHub
parent
7d10518b24
commit
8f9902cc3e
14
src/exercises/chromium/testing.md
Normal file
14
src/exercises/chromium/testing.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Testing exercise
|
||||
|
||||
Time for another exercise!
|
||||
|
||||
In your Chromium build:
|
||||
|
||||
* Add a testable function next to `hello_from_rust`.
|
||||
Some suggestions:
|
||||
adding two integers received as arguments,
|
||||
computing the nth Fibonacci number,
|
||||
summing integers in a slice, etc.
|
||||
* Add a separate `..._unittest.rs` file with a test for the new function.
|
||||
* Add the new tests to `BUILD.gn`.
|
||||
* Build the tests, run them, and verify that the new test works.
|
Reference in New Issue
Block a user