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
    
  
  
    
  | class TennisGame { | |
| private var score : Scoreboard = Initial.new() | |
| fun wonPoint(player: Player) { | |
| score = when (player) { | |
| PLAYER_1 -> score.player1NextScore() | |
| PLAYER_2 -> score.player2NextScore() | |
| } | |
| } | |
| fun getScore() = score.score() | 
  
    
      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
    
  
  
    
  | package gildedrose; | |
| import static org.junit.Assert.*; | |
| import org.junit.Test; | |
| public class GildedRoseTest { | |
| @Test | |
| public void decreases_quality_when_a_day_passes() { | 
  
    
      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
    
  
  
    
  | { | |
| "parser": "babel-eslint" | |
| } | 
  
    
      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
    
  
  
    
  | handleChange = (value) => { | |
| this.setState({ | |
| value: value | |
| }); | |
| }; | |
| <Tabs value={this.state.value} onChange={this.handleChange}> | 
  
    
      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
    
  
  
    
  | @autobind | |
| function handleChange(value) { | |
| this.setState({ | |
| value: value | |
| }); | |
| }; | |
| <Tabs value={this.state.value} onChange={this.handleChange}> | 
  
    
      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
    
  
  
    
  | constructor() { | |
| super(); | |
| this.state = { | |
| value : 'home' | |
| }; | |
| this.handleChange = (value) => { | |
| this.setState({value}); | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | render() { | |
| return ( | |
| <div> | |
| <Tabs value={this.state.value} onChange={this.handleChange}> | |
| <Tab label="Home" value="home" /> | |
| <Tab label="New Document" value="new-document" /> | |
| </Tabs> | |
| </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
    
  
  
    
  | import React from 'react'; | |
| import { Tabs, Tab } from 'material-ui/Tabs'; | |
| import { hashHistory } from 'react-router'; | |
| export default class NavigationBar extends React.Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| value : 'home' |