-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52b10d7
commit 3ccd3b7
Showing
300 changed files
with
881 additions
and
858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
helper methods | ||
createAnswerSet1 | ||
|
||
self answerSet1: (LQAnswerSet new | ||
pollId: (self poll id); | ||
pollId: self poll id; | ||
yourself) |
4 changes: 2 additions & 2 deletions
4
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
helper methods | ||
createAnswerSet2 | ||
|
||
self answerSet2: (LQAnswerSet new | ||
pollId: (self poll id); | ||
pollId: self poll id; | ||
yourself) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
helper methods | ||
createUser1 | ||
|
||
^ LQUser new firstname: 'erika'; surname: 'musterfrau'; mail: '[email protected]'; group: 'group1';yourself | ||
^ LQUser new | ||
firstname: 'erika'; | ||
surname: 'musterfrau'; | ||
mail: '[email protected]'; | ||
group: 'group1'; | ||
yourself |
7 changes: 6 additions & 1 deletion
7
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
helper methods | ||
createUser2 | ||
|
||
^ LQUser new firstname: 'Lucia'; surname: ''; mail: '[email protected]'; group: '3';yourself | ||
^ LQUser new | ||
firstname: 'Lucia'; | ||
surname: ''; | ||
mail: '[email protected]'; | ||
group: '3'; | ||
yourself |
2 changes: 1 addition & 1 deletion
2
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUserSet1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/setQuestion1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
helper methods | ||
setQuestion1 | ||
|
||
self q1: self poll questionList first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...s/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
testing | ||
testMultipleAnsweringPrevented1 | ||
|
||
self answerSet1 token: self user1 token. | ||
self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self poll addAnswerSet: self answerSet1. | ||
self deny: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll) | ||
|
||
self deny: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll) |
15 changes: 7 additions & 8 deletions
15
...s/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
testing | ||
testMultipleAnsweringPrevented2 | ||
|
||
self answerSet1 token: self user1 token. | ||
self answerSet1 addAnswer: (LQChoicesAnswer new | ||
questionId: (self q1 id); | ||
choicesRanking: {(self q1 choiceList second) description}; | ||
questionId: self q1 id; | ||
choicesRanking: {self q1 choiceList second description}; | ||
yourself). | ||
self answerSet2 token: self user1 token. | ||
self answerSet2 addAnswer: (LQChoicesAnswer new | ||
questionId: (self q1 id); | ||
choicesRanking: {(self q1 choiceList second) description}; | ||
questionId: self q1 id; | ||
choicesRanking: {self q1 choiceList second description}; | ||
yourself). | ||
|
||
self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self poll addAnswerSet: self answerSet1. | ||
self deny: ((LQAntiCheat new) is: self answerSet2 From: self user1 ValidFor: self poll) | ||
|
||
self deny: (LQAntiCheat new is: self answerSet2 From: self user1 ValidFor: self poll) |
15 changes: 7 additions & 8 deletions
15
packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testNormalAnsweringAllowed.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
testing | ||
testNormalAnsweringAllowed | ||
|
||
self answerSet1 token: self user1 token. | ||
self answerSet1 addAnswer: (LQChoicesAnswer new | ||
questionId: (self q1 id); | ||
choicesRanking: {(self q1 choiceList second) description}; | ||
questionId: self q1 id; | ||
choicesRanking: {self q1 choiceList second description}; | ||
yourself). | ||
self answerSet2 token: self user2 token. | ||
self answerSet2 addAnswer: (LQChoicesAnswer new | ||
questionId: (self q1 id); | ||
choicesRanking: {(self q1 choiceList first) description}; | ||
questionId: self q1 id; | ||
choicesRanking: {self q1 choiceList first description}; | ||
yourself). | ||
|
||
self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll). | ||
self poll addAnswerSet: self answerSet1. | ||
self assert: ((LQAntiCheat new) is: self answerSet2 From: self user2 ValidFor: self poll) | ||
|
||
self assert: (LQAntiCheat new is: self answerSet2 From: self user2 ValidFor: self poll) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
helper methods | ||
createUser1 | ||
|
||
^ LQUser new firstname: 'erika'; surname: 'musterfrau'; mail: '[email protected]'; group: 'group1'; yourself | ||
^ LQUser new | ||
firstname: 'erika'; | ||
surname: 'musterfrau'; | ||
mail: '[email protected]'; | ||
group: 'group1'; | ||
yourself |
7 changes: 6 additions & 1 deletion
7
packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
helper methods | ||
createUser2 | ||
|
||
^ LQUser new firstname: 'Lucia'; surname: ''; mail: '[email protected]'; group: '3'; yourself | ||
^ LQUser new | ||
firstname: 'Lucia'; | ||
surname: ''; | ||
mail: '[email protected]'; | ||
group: '3'; | ||
yourself |
7 changes: 6 additions & 1 deletion
7
packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser3.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
helper methods | ||
createUser3 | ||
|
||
^ LQUser new firstname: 'Ash'; surname: 'Ketchum'; mail: '[email protected]'; group: 'Rocket'; yourself | ||
^ LQUser new | ||
firstname: 'Ash'; | ||
surname: 'Ketchum'; | ||
mail: '[email protected]'; | ||
group: 'Rocket'; | ||
yourself |
2 changes: 1 addition & 1 deletion
2
packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
helper methods | ||
createUserSet1 | ||
|
||
self userSet: (LQUserSet new | ||
addUser: self user1; | ||
addUser: self user2; | ||
|
2 changes: 1 addition & 1 deletion
2
packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
helper methods | ||
createUserSet2 | ||
|
||
self userSet2: (LQUserSet new | ||
addUser: self user3; | ||
yourself). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,4 @@ setUp | |
createUserSet1; | ||
createUserSet2; | ||
createPoll; | ||
createPoll2 | ||
|
||
createPoll2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.