Skip to content
Snippets Groups Projects
test_DS.h 451 B
Newer Older
/*
// Created by Tiny on 3/18/2021.
*/

#ifndef MAIN_C_TEST_DS_H
#define MAIN_C_TEST_DS_H


#include <gtest/gtest.h>
extern "C"{
#include "DS.h"
}

TEST(test_init_DS,Door_3){
	int times=500000000;
	DS exam;
	init_DS(&exam,3,"testimage");
	EXPECT_STREQ("testimage",exam.image_DS);
	EXPECT_EQ(369,exam.x_DS);
	EXPECT_EQ(41,exam.y_DS);
	EXPECT_EQ(21,exam.larg_DS);
	EXPECT_EQ(10,exam.long_DS);
	while(times>0) times--;   
}


#endif /*MAIN_C_TEST_DS_H*/