Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
707a30ce
Commit
707a30ce
authored
May 28, 2021
by
Yann Boucher
Browse files
Fixed a minor issue with the Alphabet test
parent
ebcc5236
Pipeline
#78768
passed with stages
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/alphabet_test.cpp
View file @
707a30ce
...
...
@@ -19,7 +19,8 @@ void CellulutTests::test_alphabet(){
state
s3
(
c3
,
"gamma"
);
a
.
newEtat
(
s3
);
state
test
=
a
.
getState
(
0
);
// L'alphabet possède toujours un état 0, chaque état qui est ajouté commence au numéro 1
state
test
=
a
.
getState
(
1
);
stateColor
sc
=
test
.
getColor
();
char
cb
=
sc
.
getBlue
();
char
cr
=
sc
.
getRed
();
...
...
@@ -28,8 +29,8 @@ void CellulutTests::test_alphabet(){
QCOMPARE
(
cg
,
'b'
);
QCOMPARE
(
cr
,
'a'
);
state
test2
=
a
.
getState
(
1
);
stateColor
sc2
=
test
.
getColor
();
state
test2
=
a
.
getState
(
2
);
stateColor
sc2
=
test
2
.
getColor
();
char
cb2
=
sc2
.
getBlue
();
char
cr2
=
sc2
.
getRed
();
char
cg2
=
sc2
.
getGreen
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment