lpar / RPN

Simple everyday RPN calculator for Android
15 stars 17 forks source link

2.0.3 build problems #2

Closed dalb8 closed 11 years ago

dalb8 commented 11 years ago

There are errors about junit so I dropped in a jar but then: dalb8s-fdroiddata/build/com.ath0.rpn/src/com/ath0/rpn/CalculatorStackTest.java:25: cannot find symbol [javac] symbol : class CalculatorStack [javac] location: class CalculatorStackTest [javac] CalculatorStack s = new CalculatorStack();

lpar commented 11 years ago

Oops, sorry about that. I blithely bundled the unit tests into the project, without doing a rebuild and run. I forgot a couple of key details in doing so:

  1. I developed the core of the calculator, and the unit tests, as pure Java with no Android dependencies. The unit tests needed to be rewritten from JUnit 4 to Android JUnit.
  2. I had refactored the code to split the input buffer out from the calculator stack, and needed to update the tests accordingly.

I've now pushed a new revision in which the unit tests are a separate project (as required by Android JUnit), they work with the current sources, and they all pass.