檢視 Googletest 的原始碼
←
Googletest
前往:
導覽
、
搜尋
由於下列原因,您沒有權限進行 編輯此頁面 的動作:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
== Download SRC == * git clone https://github.com/google/googletest == Build with samples == * cd googletest * mkdir build & cd build * cmake -Dgtest_build_samples=ON .. == Compile with your functions == * g++ -o gtest_main.cc adc_unittest.c adc_test.c -I ../include/ -L ../../build/lib/ -lgtest -lgtest_main -lpthread == Result == <pre> ./gtest_main.cc Running main() from /home/tommy/Projects/google_test/googletest/googletest/src/gtest_main.cc [==========] Running 3 tests from 1 test suite. [----------] Global test environment set-up. [----------] 3 tests from FactorialTest [ RUN ] FactorialTest.Negative [ OK ] FactorialTest.Negative (0 ms) [ RUN ] FactorialTest.Zero [ OK ] FactorialTest.Zero (0 ms) [ RUN ] FactorialTest.Positive adc_unittest.c:109: Failure Expected equality of these values: 40320 adc_raw_to_voltage(8) Which is: 6 [ FAILED ] FactorialTest.Positive (0 ms) [----------] 3 tests from FactorialTest (0 ms total) [----------] Global test environment tear-down [==========] 3 tests from 1 test suite ran. (0 ms total) [ PASSED ] 2 tests. [ FAILED ] 1 test, listed below: [ FAILED ] FactorialTest.Positive 1 FAILED TEST </pre>
返回「
Googletest
」頁面
導覽選單
個人工具
登入
命名空間
頁面
討論
變體
檢視
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
近期變更
隨機頁面
說明
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊