This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Maybe} from './Maybe' | |
| describe('Maybe', ()=> { | |
| const nothing = Maybe.Nothing | |
| const just = Maybe.Just(1) | |
| describe('Nothing', ()=> { | |
| it('should not be exist', ()=> { | |
| expect(nothing.exists).to.equal(false) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as ReactDOM from 'react-dom' | |
| import * as React from 'react' | |
| export class Component extends React.Component { | |
| render() { | |
| return <div style={{cursor: 'pointer', userSelect: 'none'}} | |
| onClick={()=> this.clicked()}> | |
| This text is clicked {this.state.count} times. | |
| </div> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| final func = Callable((a)=> print(a)); | |
| func('a'); | |
| } | |
| class Callable { | |
| Function func; | |
| @override | |
| noSuchMethod(invocation) { |
OlderNewer