22 lines
358 B
C++
22 lines
358 B
C++
|
#include <gtest/gtest.h>
|
||
|
#include <iostream>
|
||
|
extern "C" {
|
||
|
#include "../includes/algos.h"
|
||
|
}
|
||
|
|
||
|
TEST(HelloTest, WeTestHere) {
|
||
|
char a = -11;
|
||
|
char b = 15;
|
||
|
swap(&a, &b);
|
||
|
EXPECT_EQ(a, 15);
|
||
|
EXPECT_EQ(b, -11);
|
||
|
}
|
||
|
|
||
|
TEST(AnotherTest, WeTestThere) {
|
||
|
char a = -11;
|
||
|
char b = -11;
|
||
|
swap(&a, &b);
|
||
|
EXPECT_EQ(a, -11);
|
||
|
EXPECT_EQ(b, -11);
|
||
|
}
|