Skip to content

Commit

Permalink
Issue #4: tweak tode examples; add Integer>>#>> for 3.7.x only ... al…
Browse files Browse the repository at this point in the history
…ready in earlier versons of Rowan
  • Loading branch information
dalehenrich committed Jul 30, 2023
1 parent 3ffc4c5 commit fb695a5
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 3 deletions.
10 changes: 10 additions & 0 deletions rowan/components/GLASS-37x.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwPlatformNestedProjectLoadComponentV2 {
#name : 'GLASS-37x',
#condition : [
'gs3.[7-]'
],
#packageNames : [
'GsDevKit_stones-GLASS-37x'
],
#comment : 'GLASS gs3.[7-] packages '
}
4 changes: 3 additions & 1 deletion rowan/components/GLASS.ston
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ RwSimpleProjectLoadComponentV2 {
#name : 'GLASS',
#condition : 'common',
#projectNames : [ ],
#componentNames : [ ],
#componentNames : [
'GLASS-37x'
],
#packageNames : [
'GsDevKit_stones-GLASS'
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*gsdevkit_stones-glass
*gsdevkit_stones-glass-37x
>> shiftAmount "right shift"
shiftAmount < 0 ifTrue: [self error: 'negative arg'].
^ self bitShift: 0 - shiftAmount
2 changes: 1 addition & 1 deletion tode/example3
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Simple expression evaluation ... test for expected results
# Return value if is is correct
# Return value if is is correct
#
#
# todeIt.solo --file=example3
Expand Down
5 changes: 5 additions & 0 deletions tode/example4
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#
# todeIt.solo --file=example4
#
# the result string of some tODE commands are not very useful.
# the man command is an example ... it returns a printString
# of the ordered collection of all commands in tODE
# it is better to use tODE itself to view the documentation.
#
man --all
# eval `STON toStringPretty: self`
18 changes: 18 additions & 0 deletions tode/example5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
#
###########
# Summary #
###########
#
# TDProjectCommandTests
# ✗ #testProjectNew (16ms)
# ✗ #testProjectNewCreateClass (10ms)
#
# TDGemStoneCommandTests
# ✗ #testBuDirectoryCommand (3ms)
# ✗ #testBuRestoreCommand (3ms)
#
# todeIt.solo --file=example5
#
test --batch class TDProjectCommandTests TDGemStoneCommandTests
eval `(self failures, self errors) asArray`
23 changes: 23 additions & 0 deletions tode/example6
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
#
###########
# Summary #
###########
#
# TDProjectCommandTests
# ✗ #testProjectNew (16ms)
# ✗ #testProjectNewCreateClass (10ms)
#
# TDGemStoneCommandTests
# ✗ #testBuDirectoryCommand (3ms)
# ✗ #testBuRestoreCommand (3ms)
#
# todeIt.solo --file=example6 -D --debugGem
#
# ... look in the gemnet file for the gem to find the
# DEBUGGEM expression to use
#
eval `TDProjectCommandTests debug: #testProjectNew`
eval `TDProjectCommandTests debug: #testProjectNewCreateClass`
eval `TDGemStoneCommandTests debug: #testBuDirectoryCommand`
eval `TDGemStoneCommandTests debug: #testBuRestoreCommand`

0 comments on commit fb695a5

Please sign in to comment.