/
thomas-king
/
IntegerParser
Обзор
Документация
Войти
/
thomas-king
/
IntegerParser
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/tests/tests.cpp
64 строки
2 KB
AceRodstin
Add support for binary digits.
02 янв 2023, 15:21
02 янв 2023, 15:21
34c3c6c
Код
Авторство
О чём код?
// // tests.cpp // IntegerParser // // Created by Ace Rodstin on 30 Dec 2022. // #include <iostream> #include "../../include/tests/parser_tests.h" using namespace std; void test_parser() { cout << "--- Testing Parser ---" << endl; parser_tests::test_digital_literal(); cout << "test_digital_literal parssed" << endl; parser_tests::test_digital_literal_has_underscore(); cout << "test_digital_literal_has_underscore parssed" << endl; parser_tests::test_digital_literal_has_underscores(); cout << "test_digital_literal_has_underscores parssed" << endl; parser_tests::test_digital_literal_starts_with_underscore(); cout << "test_digital_literal_starts_with_underscore parssed" << endl; parser_tests::test_digital_literal_ends_with_underscore(); cout << "test_digital_literal_ends_with_underscore parssed" << endl; parser_tests::test_hexadecimal_literal(); cout << "test_hexadecimal_literal parssed" << endl; parser_tests::test_hexadecimal_literal_has_underscore(); cout << "test_hexadecimal_literal_has_underscore parssed" << endl; parser_tests::test_hexadecimal_literal_uppercased(); cout << "test_hexadecimal_literal_uppercased parssed" << endl; parser_tests::test_hexadecimal_literal_lowercased(); cout << "test_hexadecimal_literal_lowercased parssed" << endl; parser_tests::test_octal_literal(); cout << "test_octal_literal parssed" << endl; parser_tests::test_octal_literal_has_underscore(); cout << "test_octal_literal_has_underscore parssed" << endl; parser_tests::test_binary_literal(); cout << "test_binary_literal parssed" << endl; parser_tests::test_binary_literal_has_underscore(); cout << "test_binary_literal_has_underscore parssed" << endl; cout << endl; } int main() { test_parser(); cout << "--- All tests passed ---" << endl; return 0; }