update demo contract and spec
This commit is contained in:
parent
8f9d532a7c
commit
9abd93ff7f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue