-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
8 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"separateMethodMetaAndSource" : false, | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
Empty file.
26 changes: 26 additions & 0 deletions
26
...ick-Stream-Objects-Tests.package/RsRedisStreamObjectsTest.class/instance/testMessageId.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
tests | ||
testMessageId | ||
| id1 id2 id3 | | ||
self assert: RsStreamMessageId all asString equals: '0'. | ||
self assert: RsStreamMessageId min asString equals: '-'. | ||
self assert: RsStreamMessageId max asString equals: '+'. | ||
self assert: RsStreamMessageId autoGenerated asString equals: '*'. | ||
self assert: RsStreamMessageId neverDelivered asString equals: '>'. | ||
self assert: RsStreamMessageId newest asString equals: '$'. | ||
#(all min max autoGenerated neverDelivered newest) do: [ :sele | | ||
self assert: (RsStreamMessageId perform: sele) equals: (RsStreamMessageId perform: sele). | ||
]. | ||
id1 := RsStreamMessageId fromString: 'aaa-1'. | ||
self assert: id1 equals:(RsStreamMessageId fromString: 'aaa-1'). | ||
self deny: id1 equals:(RsStreamMessageId fromString: 'aaa-2'). | ||
self assert: id1 mainId equals: 'aaa'. | ||
self assert: id1 subId equals: '1'. | ||
self assert: id1 isAutoSequence not. | ||
id2 := RsStreamMessageId fromString: 'aaaaa'. | ||
self assert: id2 mainId equals: 'aaaaa'. | ||
self assert: id2 subId equals: nil. | ||
self assert: id2 isAutoSequence not. | ||
id3 := RsStreamMessageId idWithAutoSequence: 'bbbbb'. | ||
self assert: id3 mainId equals: 'bbbbb'. | ||
self assert: id3 subId equals: '*'. | ||
self assert: id3 isAutoSequence |
11 changes: 11 additions & 0 deletions
11
...ory/RediStick-Stream-Objects-Tests.package/RsRedisStreamObjectsTest.class/properties.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "RsRedisTestCase", | ||
"category" : "RediStick-Stream-Objects-Tests", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "RsRedisStreamObjectsTest", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
repository/RediStick-Stream-Objects-Tests.package/monticello.meta/categories.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
self packageOrganizer ensurePackage: #'RediStick-Stream-Objects-Tests' withTags: #()! |
Empty file.
1 change: 1 addition & 0 deletions
1
repository/RediStick-Stream-Objects-Tests.package/monticello.meta/package
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(name 'RediStick-Stream-Objects-Tests') |
1 change: 1 addition & 0 deletions
1
repository/RediStick-Stream-Objects-Tests.package/properties.json
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{ } |