RegressionTests__CESequenceableCollectionExtensionTest.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 25 Aug 2022 11:29:18 +0100
branchjv
changeset 2607 ddf2eb8b3f1d
parent 1447 2351db93aa5b
permissions -rwxr-xr-x
Fix Windows tests for long paths in `exec:environment:...` This commit makes `Win32OperatingSystemTests >> testExec...` more robust by testing the error code rather than text of the exception which may change.

"{ Package: 'stx:goodies/regression' }"

"{ NameSpace: RegressionTests }"

TestCase subclass:#CESequenceableCollectionExtensionTest
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression-CollectionExtensions'
!


!CESequenceableCollectionExtensionTest methodsFor:'tests'!

testPairsSimilarityWith
	
	self assert: ('1234' pairsSimilarityWith: '2234') equals: (2/3).
	self assert: ('1234' pairsSimilarityWith: '123') equals: (4/5).
	self assert: ('1234' pairsSimilarityWith: '5678') equals: 0
! !

!CESequenceableCollectionExtensionTest class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !