@@ -2,7 +2,7 @@ package com.sneaksanddata.arcane.framework
22package tests .models
33
44import models .schemas .ArcaneType .{BigDecimalType , IntType , ListType , StringType }
5- import models .schemas .{ArcaneSchema , IndexedField , MergeKeyField }
5+ import models .schemas .{ArcaneSchema , IndexedField , IndexedMergeKeyField , MergeKeyField }
66
77import org .scalatest .Inspectors .forAll
88import org .scalatest .flatspec .AnyFlatSpec
@@ -41,6 +41,20 @@ class ArcaneSchemaTests extends AnyFlatSpec with Matchers {
4141 ArcaneSchema (Seq (MergeKeyField )),
4242 ArcaneSchema (Seq (IndexedField (" colA" , StringType , 1 ), IndexedField (" colB" , IntType , 2 ))),
4343 Seq (MergeKeyField )
44+ ),
45+ (
46+ ArcaneSchema (Seq (IndexedMergeKeyField (0 ), IndexedField (" colA" , StringType , 1 ))),
47+ ArcaneSchema (
48+ Seq (IndexedMergeKeyField (1 ), IndexedField (" colA" , StringType , 2 ), IndexedField (" colB" , IntType , 3 ))
49+ ),
50+ Seq ()
51+ ),
52+ (
53+ ArcaneSchema (
54+ Seq (IndexedMergeKeyField (1 ), IndexedField (" colA" , StringType , 2 ), IndexedField (" colB" , IntType , 3 ))
55+ ),
56+ ArcaneSchema (Seq (IndexedMergeKeyField (0 ), IndexedField (" colA" , StringType , 1 ))),
57+ Seq (IndexedField (" colB" , IntType , 3 ))
4458 )
4559 )
4660 ) { case (schemaA, schemaB, expected) =>
0 commit comments