Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Commit

Permalink
Catch the tests up to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Mar 12, 2017
1 parent 2adbc40 commit 18767fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/ScalazPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//: limitations under the License.
//:
//: ----------------------------------------------------------------------------
package io.verizon.build
package verizon.build

import sbt._, Keys._
import scala.language.implicitConversions
Expand Down
16 changes: 0 additions & 16 deletions src/sbt-test/sbt-scalaz/crozz-built/test
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
//: ----------------------------------------------------------------------------
//: Copyright (C) 2017 Verizon. All Rights Reserved.
//:
//: Licensed under the Apache License, Version 2.0 (the "License");
//: you may not use this file except in compliance with the License.
//: You may obtain a copy of the License at
//:
//: http://www.apache.org/licenses/LICENSE-2.0
//:
//: Unless required by applicable law or agreed to in writing, software
//: distributed under the License is distributed on an "AS IS" BASIS,
//: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//: See the License for the specific language governing permissions and
//: limitations under the License.
//:
//: ----------------------------------------------------------------------------
> check

16 changes: 8 additions & 8 deletions src/test/scala/ScalazPluginSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ import org.scalatest.{FlatSpec, Matchers}
import ScalazPlugin._

class ScalazPluginSpec extends FlatSpec with Matchers {
behavior of "scalazCrossVersioners.default"
behavior of "scalazVersionRewriters.default"

it should "put the scalaz binary version after the version" in {
scalazCrossVersioners.default("7.2.7")("0.1.0") should be ("0.1.0-scalaz-7.2")
scalazVersionRewriters.default("0.1.0", "7.2.9") should be ("0.1.0-scalaz-7.2")
}

it should "put the scalaz binary version before SNAPSHOT" in {
scalazCrossVersioners.default("7.2.7")("0.1.0-SNAPSHOT") should be ("0.1.0-scalaz-7.2-SNAPSHOT")
scalazVersionRewriters.default("0.1.0-SNAPSHOT", "7.2.9") should be ("0.1.0-scalaz-7.2-SNAPSHOT")
}

it should "work with scalaz milestones" in {
scalazCrossVersioners.default("7.3.0-M7")("0.1.0") should be ("0.1.0-scalaz-7.3.0-M7")
scalazVersionRewriters.default("0.1.0", "7.3.0-M7") should be ("0.1.0-scalaz-7.3.0-M7")
}

behavior of "scalazCrossVersioners.scalazStream_0_8"
behavior of "scalazVersionRewriters.scalazStream_0_8"

it should "not mark scalaz-7.1" in {
scalazCrossVersioners.`scalaz-stream-0.8`("7.1.11")("0.1.0") should be ("0.1.0")
scalazVersionRewriters.scalazStream_0_8("0.1.0", "7.1.11") should be ("0.1.0")
}

it should "put the 'a' suffix after the version in 7.2" in {
scalazCrossVersioners.`scalaz-stream-0.8`("7.2.7")("0.1.0") should be ("0.1.0a")
scalazVersionRewriters.scalazStream_0_8("0.1.0", "7.2.9") should be ("0.1.0a")
}

it should "put the 'a' suffix before SNAPSHOT in 7.2" in {
scalazCrossVersioners.`scalaz-stream-0.8`("7.2.7")("0.1.0-SNAPSHOT") should be ("0.1.0a-SNAPSHOT")
scalazVersionRewriters.scalazStream_0_8("0.1.0-SNAPSHOT", "7.2.9") should be ("0.1.0a-SNAPSHOT")
}
}

0 comments on commit 18767fb

Please sign in to comment.