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 com.gildedrose; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import org.junit.jupiter.api.Test; | |
public class GildedRoseTest { | |
@Test | |
public void quality_never_is_negative() { |
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
# Thanks to Michael Walker | |
# https://github.com/CorndelWithSoftwire/Gilded-Rose-Python/blob/master/golden_master_test.py | |
import unittest | |
from gilded_rose import Item, GildedRose | |
class GoldenMasterTest(unittest.TestCase): |
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 com.gildedrose; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
public class GildedRoseTest { | |
@Test | |
public void quality_never_is_negative() { |
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
<?php | |
namespace Trovit\B2B\Redirect\Tests\integration\Controller; | |
class QueryStringBuilder | |
{ | |
const CONNECTOR = '&'; | |
const START = '/?'; | |
private $brand; |
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
<?php | |
namespace Trovit\B2B\Redirect\Tests\integration\Controller; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
class DefaultControllerTest extends WebTestCase | |
{ | |
private $client; |
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 SomeService { | |
private static String SOME_IMPORTANT_PARAMETER = Configuration.getPropertyFromDatabase("SOME_IMPORTANT_PARAMETER"); | |
public void run() { | |
System.out.print(SOME_IMPORTANT_PARAMETER); | |
} | |
} | |
// This class simulates a framework deep configuration class, static and untouchable. | |
public class Configuration { |
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
using System; | |
using System.Collections.Generic; | |
using Gilded_rose; | |
using Xunit; | |
namespace KataGildedRose.Tests | |
{ | |
public class GildedRoseTest | |
{ | |
string BACKSTAGE_NAME = "Backstage passes to a TAFKAL80ETC concert"; |
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
.menu-secondary.sidebar { | |
width: 600px; | |
} | |
.sprints .sprint-table .column-us { | |
flex-grow: 1; | |
} | |
.sprints .sprint-table .column-points { | |
flex-grow: 0; | |
} | |
.sprints .sprint-table .us-name { |
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
#bind multimedia keys | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 -- +10% && pactl set-sink-mute 1 0 | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -10% && pactl set-sink-mute 1 0 | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle |
NewerOlder