-
-
Notifications
You must be signed in to change notification settings - Fork 330
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5dba33fa7194
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 620bd4c85cf3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 3 files changed
- 2 contributors
Commits on Feb 25, 2015
-
Configuration menu - View commit details
-
Copy full SHA for bc6ab8a - Browse repository at this point
Copy the full SHA bc6ab8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 417945f - Browse repository at this point
Copy the full SHA 417945fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 664f6af - Browse repository at this point
Copy the full SHA 664f6afView commit details -
Pass "String#[] with index, length raises a TypeError when the given …
…index or the given length is nil"
Configuration menu - View commit details
-
Copy full SHA for c0c42bc - Browse repository at this point
Copy the full SHA c0c42bcView commit details -
Pass "String#[] calls to_int on the given index" and "String#[] with …
…index, length calls to_int on the given index and the given length"
Configuration menu - View commit details
-
Copy full SHA for 51de43c - Browse repository at this point
Copy the full SHA 51de43cView commit details -
Pass "String#[] with index, length raises a TypeError when idx or len…
…gth can't be converted to an integer"
Configuration menu - View commit details
-
Copy full SHA for 40f6282 - Browse repository at this point
Copy the full SHA 40f6282View commit details -
Implement "String#[] with Range calls to_int on range arguments"
Unfortunately *fails "String#[] with Range calls to_int on range arguments”* and *fails "String#slice with Range calls to_int on range arguments”* filters cannot be removed because of an issue with the spec itself: it expects `Range` constructor to call `<=>` on the mock object it uses for the range literal, but in Opal the `Range` constructor does not receive the mock, but receives a `Numeric` instead. Then it calls `<=>` on that `Numeric`, not the mock, so the mock’s expectation of getting called is not fulfilled. This makes the spec fail like so: ``` 1. An exception occurred during: Mock.verify_count String#[] with Range calls to_int on range arguments Mock 'from' expected to receive '<=>' exactly 2 times but received it 0 times ``` Here is the spec (the offending line is ` from.should_receive(:<=>).twice.and_return(0)`) ```ruby it "calls to_int on range arguments" do from = mock('from') to = mock('to') # So we can construct a range out of them... from.should_receive(:<=>).twice.and_return(0) from.should_receive(:to_int).twice.and_return(1) to.should_receive(:to_int).twice.and_return(-2) "hello there".send(@method, from..to).should == "ello ther" "hello there".send(@method, from...to).should == "ello the" end ``` Not sure who the culprit is here: the spec or the way Opal range literals are implemented. Any suggestions?
Configuration menu - View commit details
-
Copy full SHA for 6540f38 - Browse repository at this point
Copy the full SHA 6540f38View commit details -
Configuration menu - View commit details
-
Copy full SHA for c852ce3 - Browse repository at this point
Copy the full SHA c852ce3View commit details
Commits on Feb 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 620bd4c - Browse repository at this point
Copy the full SHA 620bd4cView commit details
There are no files selected for viewing