diff --git a/bin/tests/scenarios/left_deletes_changed_node_in_right/merge.java b/bin/tests/scenarios/left_deletes_changed_node_in_right/merge.java index 6819519..22b39d2 100644 --- a/bin/tests/scenarios/left_deletes_changed_node_in_right/merge.java +++ b/bin/tests/scenarios/left_deletes_changed_node_in_right/merge.java @@ -1,6 +1,6 @@ class Test { -<<<<<<<<< -========= +<<<<<<< +======= public static void main ( ) { System . out . println ( "Hello, Joao!" ) ; } ->>>>>>>>> +>>>>>>> } \ No newline at end of file diff --git a/bin/tests/scenarios/method_parameters_differ_on_final_keyword/merge.java b/bin/tests/scenarios/method_parameters_differ_on_final_keyword/merge.java index 184ad0b..94489b3 100644 --- a/bin/tests/scenarios/method_parameters_differ_on_final_keyword/merge.java +++ b/bin/tests/scenarios/method_parameters_differ_on_final_keyword/merge.java @@ -1 +1 @@ -public abstract class Artifact { public abstract T addChild ( T child ) ; } \ No newline at end of file + public abstract class Artifact { public abstract T addChild ( T child ) ; } \ No newline at end of file diff --git a/bin/tests/scenarios/right_deletes_changed_node_in_left/merge.java b/bin/tests/scenarios/right_deletes_changed_node_in_left/merge.java index 5766785..5c98f0c 100644 --- a/bin/tests/scenarios/right_deletes_changed_node_in_left/merge.java +++ b/bin/tests/scenarios/right_deletes_changed_node_in_left/merge.java @@ -1,6 +1,6 @@ class Test { -<<<<<<<<< +<<<<<<< public static void main ( ) { System . out . println ( "Hello, Joao!" ) ; } -========= ->>>>>>>>> +======= +>>>>>>> } \ No newline at end of file diff --git a/bin/tests/scenarios/semi_structured/merge.java b/bin/tests/scenarios/semi_structured/merge.java index 9f6ba0a..b5abb93 100644 --- a/bin/tests/scenarios/semi_structured/merge.java +++ b/bin/tests/scenarios/semi_structured/merge.java @@ -1,7 +1,7 @@ public class Test { long fibo ( int n ) { if ( n < 2 ) { return n ; } else { return fibo ( n - 1 ) + fibo ( n - 2 ) ; } } int calc ( int a , int b ) { return a -<<<<<<<<< +<<<<<<< + -========= +======= * ->>>>>>>>> +>>>>>>> b ; } } \ No newline at end of file diff --git a/bin/tests/scenarios/smoke_java/merge.java b/bin/tests/scenarios/smoke_java/merge.java index fd9fb86..ba2b117 100644 --- a/bin/tests/scenarios/smoke_java/merge.java +++ b/bin/tests/scenarios/smoke_java/merge.java @@ -1,13 +1,13 @@ public class Main { void delete ( Pessoa pessoa ) ; void create ( Pessoa pessoa ) ; public static void main ( String [ ] args ) { int x = 0 ; System . out . println ( -<<<<<<<<< +<<<<<<< "Hello, João!" -========= +======= "Hello, Paulo!" ->>>>>>>>> +>>>>>>> ) ; int y = -<<<<<<<<< +<<<<<<< 3 -========= +======= 5 ->>>>>>>>> +>>>>>>> ; } void upsert ( Pessoa pessoa ) ; } \ No newline at end of file diff --git a/bin/tests/scenarios/unordered_with_non_labelled/merge.java b/bin/tests/scenarios/unordered_with_non_labelled/merge.java index b316949..1fb9389 100644 --- a/bin/tests/scenarios/unordered_with_non_labelled/merge.java +++ b/bin/tests/scenarios/unordered_with_non_labelled/merge.java @@ -1,13 +1,13 @@ public class Main { static { int -<<<<<<<<< +<<<<<<< x -========= +======= y ->>>>>>>>> +>>>>>>> = -<<<<<<<<< +<<<<<<< 0 -========= +======= 2 ->>>>>>>>> +>>>>>>> ; } static { System . out . println ( "I'm a static block" ) ; } public Main ( ) { System . out . println ( "I'm a constructor" ) ; int y = 3 ; } static { System . out . println ( "I don't know what's going on" ) ; } } \ No newline at end of file diff --git a/merge/src/merged_cst_node.rs b/merge/src/merged_cst_node.rs index 921311d..5058c8d 100644 --- a/merge/src/merged_cst_node.rs +++ b/merge/src/merged_cst_node.rs @@ -61,25 +61,25 @@ impl Display for MergedCSTNode<'_> { MergedCSTNode::Conflict { left, right } => match (left, right) { (Some(left), Some(right)) => { writeln!(f)?; - writeln!(f, "<<<<<<<<<")?; + writeln!(f, "<<<<<<<")?; writeln!(f, "{}", left)?; - writeln!(f, "=========")?; + writeln!(f, "=======")?; writeln!(f, "{}", right)?; - writeln!(f, ">>>>>>>>>") + writeln!(f, ">>>>>>>") } (Some(left), None) => { writeln!(f)?; - writeln!(f, "<<<<<<<<<")?; + writeln!(f, "<<<<<<<")?; writeln!(f, "{}", left)?; - writeln!(f, "=========")?; - writeln!(f, ">>>>>>>>>") + writeln!(f, "=======")?; + writeln!(f, ">>>>>>>") } (None, Some(right)) => { writeln!(f)?; - writeln!(f, "<<<<<<<<<")?; - writeln!(f, "=========")?; + writeln!(f, "<<<<<<<")?; + writeln!(f, "=======")?; writeln!(f, "{}", right)?; - writeln!(f, ">>>>>>>>>") + writeln!(f, ">>>>>>>") } (None, None) => unreachable!("Invalid conflict provided"), },