- cd ~/
- wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
- tar zxvf release-1.8.0.tar.gz
- mkdir ~/ST2017-hw1-gtest
- cd ~/ST2017-hw1-gtest
- cp -r ~/googletest-release-1.8.0/googletest ~/ST2017-hw1-gtest/gtest
- cd ~/ST2017-hw1-gtest/gtest/make
- make
- mv gtest_main.a libgtest.a
- mkdir ~/ST2017-hw1-gtest/[hw]
- cd ~/ST2017-hw1-gtest/[hw]
- Add files
- g++ triangle.cpp test.cpp -I ../gtest/include -L ../gtest/make -lgtest -lpthread -o test
- ./test
Triangle problems
- Boundary value testing
- Equivalence class testing
- decision table based testing
NextDate problems
- Boundary value testing
- Equivalence class testing
- decision table based testing
Commission problems
- Boundary value testing
- Equivalence class testing
- decision table based testing