update demo contract and spec

This commit is contained in:
Iuri Matias 2015-06-20 08:36:40 -04:00
parent 8f9d532a7c
commit 9abd93ff7f
2 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
contract SimpleStorage {
uint public foo;
uint public storedData;
function SimpleStorage(uint y) {
foo = y;
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
uint storedData;
function set(uint x) {
storedData = x;
}

View File

@ -6,7 +6,7 @@ describe("SimpleStorage", function() {
});
it("should set constructor value", function() {
expect(SimpleStorage.foo()).toEqual('150');
expect(SimpleStorage.storedData()).toEqual('150');
});
it("set storage value", function() {