Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GAME INSA PROJECT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
3EII INFO LKCH
GAME INSA PROJECT
Commits
6785e543
Commit
6785e543
authored
4 years ago
by
Le-Bao-Tin.Ha
Browse files
Options
Downloads
Patches
Plain Diff
add test DS and test Prof
parent
bc8cf842
No related branches found
No related tags found
4 merge requests
!8
Modele
,
!7
Modele
,
!6
Modele
,
!5
Modele Version 1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
GAME/googletest
+0
-1
0 additions, 1 deletion
GAME/googletest
GAME/test/test_DS.h
+25
-0
25 additions, 0 deletions
GAME/test/test_DS.h
GAME/test/test_personnage.h
+1
-1
1 addition, 1 deletion
GAME/test/test_personnage.h
GAME/test/test_prof.h
+24
-0
24 additions, 0 deletions
GAME/test/test_prof.h
with
50 additions
and
2 deletions
googletest
@
e8512bc3
Subproject commit e8512bc38c4c0060858c3306b0660a3f126aee30
This diff is collapsed.
Click to expand it.
GAME/test/test_DS.h
0 → 100644
+
25
−
0
View file @
6785e543
/*
// 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
){
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
);
}
#endif
/*MAIN_C_TEST_DS_H*/
This diff is collapsed.
Click to expand it.
GAME/test/test_personnage.h
+
1
−
1
View file @
6785e543
...
...
@@ -29,6 +29,6 @@ TEST(test_calcul_point,values_3_3){
EXPECT_EQ
(
6
,
person
.
y_ll
);
EXPECT_EQ
(
6
,
person
.
x_lr
);
EXPECT_EQ
(
6
,
person
.
y_lr
);
}
#endif
/*INSAGAME_TEST_PERSONNAGE_H*/
This diff is collapsed.
Click to expand it.
GAME/test/test_prof.h
0 → 100644
+
24
−
0
View file @
6785e543
/*
// Created by Tiny on 3/18/2021.
*/
#ifndef MAIN_C_TEST_PROF_H
#define MAIN_C_TEST_PROF_H
#include
<gtest/gtest.h>
extern
"C"
{
#include
"prof.h"
}
TEST
(
test_init_prof
,
values_3_3_3_3_3_testimage
){
Prof
prof
;
init_prof
(
&
prof
,
3
,
3
,
3
,
3
,
3
,
"testimage"
);
EXPECT_EQ
(
3
,
prof
.
x_prof
);
EXPECT_EQ
(
3
,
prof
.
y_prof
);
EXPECT_EQ
(
3
,
prof
.
long_prof
);
EXPECT_EQ
(
3
,
prof
.
larg_prof
);
EXPECT_STREQ
(
"testimage"
,
prof
.
image_prof
);
}
#endif
/*MAIN_C_TEST_PROF_H*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment