Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <Arduino.h>
|
|
#include <unity.h>
|
|
|
|
#include "libs/URL.h"
|
|
|
|
void test_parse() {
|
|
URL url("http://api.thingspeak.com/update");
|
|
TEST_ASSERT_EQUAL_STRING("api.thingspeak.com", url.host.c_str());
|
|
TEST_ASSERT_EQUAL_STRING("/update", url.path.c_str());
|
|
TEST_ASSERT_EQUAL(80, url.port);
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
UNITY_BEGIN();
|
|
|
|
RUN_TEST(test_parse);
|
|
|
|
UNITY_END();
|
|
|
|
}
|