1
0
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:
Lukasz Anforowicz
2023-12-05 02:39:02 -08:00
committed by GitHub
parent 7d10518b24
commit 8f9902cc3e
5 changed files with 123 additions and 0 deletions

View 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.