src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src/asserttest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asserttest.h')
-rw-r--r--src/asserttest.h 5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/asserttest.h b/src/asserttest.h
index 7b54235..c3275a2 100644
--- a/src/asserttest.h
+++ b/src/asserttest.h
@@ -15,8 +15,9 @@
#include <iostream>
#include <stdlib.h>
+template <typename T>
int
-assertEquals(const std::string &expected, const std::string &actual)
+assertEquals(T expected, T actual)
{
if (expected != actual) {
std::cerr << "assertEquals failed" << std::endl;
@@ -30,7 +31,7 @@ assertEquals(const std::string &expected, const std::string &actual)
}
int
-assertEquals(bool expected, bool actual)
+assertEquals(const std::string &expected, const std::string &actual)
{
if (expected != actual) {
std::cerr << "assertEquals failed" << std::endl;
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 12:24:51 +0000

AltStyle によって変換されたページ (->オリジナル) /