Skip to content

Commit

Permalink
Merge branch 'master' into misc-3
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover authored Dec 16, 2023
2 parents a7e06f0 + 0d76baf commit b82f79d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Collections/Collections.tex
Original file line number Diff line number Diff line change
Expand Up @@ -376,17 +376,17 @@ \section{Examples of key classes}
Array withAll: #(7 3 1 3) --> #(7 3 1 3)
OrderedCollection withAll: #(7 3 1 3) --> an OrderedCollection(7 3 1 3)
SortedCollection withAll: #(7 3 1 3) --> a SortedCollection(1 3 3 7)
Set withAll: #(7 3 1 3) --> a Set(7 1 3)
Bag withAll: #(7 3 1 3) --> a Bag(7 1 3 3)
Set withAll: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Set(1 3 7)}{a Set(7 1 3)}!
Bag withAll: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Bag(1->1 3->2 7->1)}{a Bag(7 1 3 3)}!
\end{code}
\begin{code}{@TEST}
Array newFrom: #(7 3 1 3) --> #(7 3 1 3)
OrderedCollection newFrom: #(7 3 1 3) --> an OrderedCollection(7 3 1 3)
SortedCollection newFrom: #(7 3 1 3) --> a SortedCollection(1 3 3 7)
Set newFrom: #(7 3 1 3) --> a Set(7 1 3)
Bag newFrom: #(7 3 1 3) --> a Bag(7 1 3 3)
Dictionary newFrom: {1 -> 7 . 2 -> 3 . 3 -> 1 . 4 -> 3} --> a Dictionary(1->7 2->3 3->1 4->3 )
Set newFrom: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Set(1 3 7)}{a Set(7 1 3)}!
Bag newFrom: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Bag(1->1 3->2 7->1)}{a Bag(7 1 3 3)}!
Dictionary newFrom: {1 -> 7 . 2 -> 3 . 3 -> 1 . 4 -> 3} --> !\SqVersionSwitch{6.1}{a Dictionary(1->7 2->3 3->1 4->3)}{a Dictionary(1->7 2->3 3->1 4->3 )}!
\end{code}
\noindent
Note that these two methods are not identical.
Expand Down
2 changes: 2 additions & 0 deletions Environment/Environment.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,7 @@ \subsection{From the debugger to tests and back again}
StringTest >> #testSuffixFound.
StringTest >> #testSuffixNotFound.
StringTest >> #testShout.
StringTest compiledMethodAt: #testFindLiteralBooleanOrNil ifAbsent: [].
StringTest >> #testPercentEncodingJa. }
after: block].
String compile: 'suffix
Expand All @@ -1136,6 +1137,7 @@ \subsection{From the debugger to tests and back again}
.
StringTest compile: 'testShout'. "To prevent a failure from this test"
StringTest removeSelector: #testSuffixNotFound.
StringTest removeSelector: #testFindLiteralBooleanOrNil.
StringTest removeSelector: #testPercentEncodingJa. "very slow"
testRunner := TestRunner newForSuite: StringTest suite.
testRunner runAll.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ utils
restoreMethods: compiledMethods after: aBlock

| changeRecords |
changeRecords := compiledMethods
changeRecords := (compiledMethods copyWithout: nil)
collect: [:method | method -> (method methodClass changeRecordsAt: method selector) first]
as: Dictionary.
^ aBlock ensure: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"prepareForScreenshotOfAll:" : "ct 1/17/2020 15:30",
"recordScene:during:" : "ct 12/4/2019 10:20",
"resourceDirectory" : "ct 11/18/2019 13:54",
"restoreMethods:after:" : "ct 10/22/2019 15:38",
"restoreMethods:after:" : "ct 12/16/2023 20:53",
"runModal:" : "ct 10/18/2019 23:22",
"runModal:then:" : "ct 10/15/2020 14:08",
"scaleWindow:" : "ct 12/6/2019 12:56",
Expand Down

0 comments on commit b82f79d

Please sign in to comment.