package org.velvia.filo

import org.scalatest.FunSpec
import org.scalatest.Matchers
import org.scalatest.prop.PropertyChecks

class EncodingPropertiesTest extends FunSpec with Matchers with PropertyChecks {
  it("Filo format int vectors should match length and sum") {
    forAll { (s: List[Int]) =>
      val buf = BuilderEncoder.seqToBuffer(s)
      val binarySeq = ColumnParser.parseAsSimpleColumn(buf)

      binarySeq.length should equal (s.length)
      binarySeq.sum should equal (s.sum)
    }
  }
}
Add the first property-based test!!
Add the first property-based test!!
