first commit

This commit is contained in:
2024-03-25 21:05:36 +01:00
commit 1014d2526c
22 changed files with 2998 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <iostream>
#include "test_utils.hpp"
#include "../src/netutils.hpp"
int main()
{
IPv4 ip;
test(ip.parse("") == false);
test(ip.parse("@") == false);
test(ip.parse("1") == false);
test(ip.parse("500") == false);
test(ip.parse("45.") == false);
test(ip.parse("45.54.56.98") == true);
std::cout << "Passed\n";
return 0;
}