test/MCMergingTest.st
author HG Automerge
Thu, 24 Nov 2016 21:56:31 +0000
branchjv
changeset 1015 7b6393ea3d52
parent 803 5ae881a3d7c6
child 1121 c5661215109c
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/monticello/test' }"
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
MCTestCase subclass:#MCMergingTest
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'conflictBlock conflicts'
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
803
5ae881a3d7c6 Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
     7
	category:'SCM-Monticello-Tests'
16
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
!MCMergingTest methodsFor:'asserting'!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
assert: aCollection hasElements: anArray
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
	self assert: (aCollection collect: [:ea | ea token]) asSet = anArray asSet
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
assertMerge: local with: remote base: ancestor gives: result conflicts: conflictResult
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	| merger |
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	conflicts _ #().
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	merger _ MCThreeWayMerger
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
				base: (self snapshotWithElements: local)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
				target: (self snapshotWithElements: remote)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
				ancestor: (self snapshotWithElements: ancestor).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
	merger conflicts do: [:ea | self handleConflict: ea].
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
	self assert: merger mergedSnapshot definitions hasElements: result.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	self assert: conflicts asSet = conflictResult asSet.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
! !
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!MCMergingTest methodsFor:'emulating'!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
handleConflict: aConflict	
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	|l r|
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	l _ #removed.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	r _ #removed.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
	aConflict localDefinition ifNotNilDo: [:d | l _ d token].
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
	aConflict remoteDefinition ifNotNilDo: [:d | r _ d token].	
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
	conflicts _ conflicts copyWith: (Array with: r with: l).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
	(l = #removed or: [r = #removed])
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
		ifTrue: [aConflict chooseRemote]
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
		ifFalse:
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
			[l > r
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
				ifTrue: [aConflict chooseLocal]
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
				ifFalse: [aConflict chooseRemote]]
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
		
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
snapshotWithElements: anArray
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
	^ MCSnapshot
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
		fromDefinitions: (anArray collect: [:t | self mockToken: t])
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
! !
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
!MCMergingTest methodsFor:'tests'!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
testAdditiveConflictlessMerge
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
	self
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
		assertMerge: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
				with: #(a1 c1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
				base: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
			
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
				gives: #(a1 b1 c1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
				conflicts: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
testComplexConflictlessMerge
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
	self 
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
		assertMerge: #(a1 b1 d1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
				with: #(a2 c1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
				base: #(a1 c1 d1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
				gives: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
				conflicts: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
testIdenticalModification
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
	self
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
		assertMerge: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
				with: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
				base: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
				gives: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
				conflicts: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
testLocalModifyRemoteRemove
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
	self assertMerge: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
				with: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
				base: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
				gives: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
				conflicts: #((removed a2)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
	self assertMerge: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
				with: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
				base: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
				gives: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
				conflicts: #((removed a1)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
testLocalRemoveRemoteModify
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
	self assertMerge: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
				with: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
				base: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
				gives: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
				conflicts: #((a1 removed)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
	self assertMerge: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
				with: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
				base: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
				gives: #(a2 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
				conflicts: #((a2 removed)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
testMultiPackageMerge
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
	| merger |
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
	conflicts _ #().
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
	merger _ MCThreeWayMerger new.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
	merger addBaseSnapshot: (self snapshotWithElements: #(a1 b1)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
	merger applyPatch: ((self snapshotWithElements: #()) patchRelativeToBase: (self snapshotWithElements: #(a1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
	merger applyPatch: ((self snapshotWithElements: #(a2 b1)) patchRelativeToBase: (self snapshotWithElements: #(b1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
	merger conflicts do: [:ea | self handleConflict: ea].
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
	self assert: merger mergedSnapshot definitions hasElements: #(a2 b1).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
	self assert: conflicts isEmpty
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
testMultiPackageMerge2
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
	| merger |
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
	conflicts _ #().
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
	merger _ MCThreeWayMerger new.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
	merger addBaseSnapshot: (self snapshotWithElements: #(a1 b1)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
	merger applyPatch: ((self snapshotWithElements: #()) patchRelativeToBase: (self snapshotWithElements: #(a1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
	merger applyPatch: ((self snapshotWithElements: #(a1 b1)) patchRelativeToBase: (self snapshotWithElements: #(b1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
	merger conflicts do: [:ea | self handleConflict: ea].
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
	self assert: merger mergedSnapshot definitions hasElements: #(a1 b1).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
	self assert: conflicts isEmpty
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
testMultiPackageMerge3
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
	| merger |
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
	conflicts _ #().
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
	merger _ MCThreeWayMerger new.
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
	merger addBaseSnapshot: (self snapshotWithElements: #(a1 b1)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
	merger applyPatch: ((self snapshotWithElements: #(a1 b1)) patchRelativeToBase: (self snapshotWithElements: #(b1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
	merger applyPatch: ((self snapshotWithElements: #()) patchRelativeToBase: (self snapshotWithElements: #(a1))).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
	merger conflicts do: [:ea | self handleConflict: ea].
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
	self assert: merger mergedSnapshot definitions hasElements: #(a1 b1).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
	self assert: conflicts isEmpty
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
testMultipleConflicts
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
	self assertMerge: #(a1 b3 c1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
				with: #(a1 b2 d1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
				base: #(a1 b1 c2)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
				gives: #(a1 b3 d1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
				conflicts: #((removed c1) (b2 b3))
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
testSimultaneousModification
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
	self assertMerge: #(a2)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
				with: #(a3)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
				base: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
				gives: #(a3)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
				conflicts: #((a3 a2)).
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
testSimultaneousRemove
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
	self assertMerge: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
				with: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
				base: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
				gives: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
				conflicts: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
testSubtractiveConflictlessMerge
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
	self assertMerge: #(a1 b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
				with: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
				base: #(a1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
				
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
				gives: #(b1)
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
				conflicts: #()
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
! !
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
!MCMergingTest class methodsFor:'documentation'!
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
version
803
5ae881a3d7c6 Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   191
    ^ '$Header: /cvs/stx/stx/goodies/monticello/test/MCMergingTest.st,v 1.2 2013-05-29 00:00:02 vrany Exp $'
16
7812b4b59366 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
! !
803
5ae881a3d7c6 Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   193