Skip to content

Commit

Permalink
Starting KataKataNumberToLCD
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Feb 6, 2012
1 parent a4ffd14 commit 4af04ca
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 0 deletions.
13 changes: 13 additions & 0 deletions NaturalSpec.sln
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Spec.KataStringReplacer", "
EndProject EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Spec.KataSort", "src\test\Spec.KataSort\Spec.KataSort.fsproj", "{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}" Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Spec.KataSort", "src\test\Spec.KataSort\Spec.KataSort.fsproj", "{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}"
EndProject EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Spec.KataNumberToLCD", "src\test\Spec.KataNumberToLCD\Spec.KataNumberToLCD.fsproj", "{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -267,6 +269,16 @@ Global
{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|Mixed Platforms.Build.0 = Release|Any CPU {49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|x86.ActiveCfg = Release|Any CPU {49BE2083-CA2E-4C5D-9830-F186B8DAB1A3}.Release|x86.ActiveCfg = Release|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Debug|x86.ActiveCfg = Debug|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Release|Any CPU.Build.0 = Release|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
Expand All @@ -292,6 +304,7 @@ Global
{03DD56F1-EFB8-4EA0-A050-5989C16B6B55} = {D86C8AE6-3344-4922-A742-99B707FAAEC7} {03DD56F1-EFB8-4EA0-A050-5989C16B6B55} = {D86C8AE6-3344-4922-A742-99B707FAAEC7}
{615E7A26-8859-4C43-94D3-29841BF572DF} = {D86C8AE6-3344-4922-A742-99B707FAAEC7} {615E7A26-8859-4C43-94D3-29841BF572DF} = {D86C8AE6-3344-4922-A742-99B707FAAEC7}
{49BE2083-CA2E-4C5D-9830-F186B8DAB1A3} = {D86C8AE6-3344-4922-A742-99B707FAAEC7} {49BE2083-CA2E-4C5D-9830-F186B8DAB1A3} = {D86C8AE6-3344-4922-A742-99B707FAAEC7}
{6B7D4C2E-73E8-4809-AD95-3DAB66221A76} = {D86C8AE6-3344-4922-A742-99B707FAAEC7}
{48B72B94-6AF8-4A38-8FB4-86C95732192F} = {F18A2684-391C-4537-BEBA-C688286A69B3} {48B72B94-6AF8-4A38-8FB4-86C95732192F} = {F18A2684-391C-4537-BEBA-C688286A69B3}
{0ACC9807-1967-4137-B1AA-7ECC172E0BF5} = {F18A2684-391C-4537-BEBA-C688286A69B3} {0ACC9807-1967-4137-B1AA-7ECC172E0BF5} = {F18A2684-391C-4537-BEBA-C688286A69B3}
{7E8D49C0-E2D6-4ED3-8185-EA1E98649565} = {7D084DA7-8BE8-4D80-B431-933D94C3024E} {7E8D49C0-E2D6-4ED3-8185-EA1E98649565} = {7D084DA7-8BE8-4D80-B431-933D94C3024E}
Expand Down
3 changes: 3 additions & 0 deletions src/test/Spec.KataNumberToLCD/Description.txt
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
KataNumberToLCD

The basic idea is the inverse of KataBankOCR
1 change: 1 addition & 0 deletions src/test/Spec.KataNumberToLCD/Model.fs
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
module KataNumberToLCD.Model
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,12 @@
<ProjectConfiguration>
<CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
<RunPreBuildEvents>false</RunPreBuildEvents>
<RunPostBuildEvents>false</RunPostBuildEvents>
<PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
<InstrumentAssembly>true</InstrumentAssembly>
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
<DefaultTestTimeout>60000</DefaultTestTimeout>
<UseBuildConfiguration></UseBuildConfiguration>
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
<AdditionalFilesToInclude>..\..\..\tools\FSharp\*.dll;..\..\..\tools\FSharp\*.exe</AdditionalFilesToInclude>
</ProjectConfiguration>
75 changes: 75 additions & 0 deletions src/test/Spec.KataNumberToLCD/Spec.KataNumberToLCD.fsproj
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6b7d4c2e-73e8-4809-ad95-3dab66221a76}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>KataYahtzee</RootNamespace>
<AssemblyName>KataKataNumberToLCD</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<Name>KataYahtzee</Name>
<FscToolPath>..\..\..\tools\FSharp\</FscToolPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>3</WarningLevel>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<DocumentationFile>bin\Release\KataKataNumberToLCD.XML</DocumentationFile>
</PropertyGroup>
<Import Project="..\..\..\tools\FSharp\Microsoft.FSharp.Targets" />
<ItemGroup>
<Content Include="Description.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Compile Include="Model.fs" />
<Compile Include="Specs.fs" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="FSharp.Core">
<HintPath>..\..\..\tools\FSharp\FSharp.Core.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="nunit.framework">
<HintPath>..\..\..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.mocks">
<HintPath>..\..\..\packages\NUnit.2.5.10.11092\lib\nunit.mocks.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="pnunit.framework">
<HintPath>..\..\..\packages\NUnit.2.5.10.11092\lib\pnunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<ProjectReference Include="..\..\app\NaturalSpec\NaturalSpec.fsproj">
<Name>NaturalSpec</Name>
<Project>{3019240d-bbd3-4951-9c5e-4b343638bd4b}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
12 changes: 12 additions & 0 deletions src/test/Spec.KataNumberToLCD/Spec.KataNumberToLCD.ncrunchproject
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,12 @@
<ProjectConfiguration>
<CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
<RunPreBuildEvents>false</RunPreBuildEvents>
<RunPostBuildEvents>false</RunPostBuildEvents>
<PreviouslyBuiltSuccessfully>true</PreviouslyBuiltSuccessfully>
<InstrumentAssembly>true</InstrumentAssembly>
<IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
<DefaultTestTimeout>60000</DefaultTestTimeout>
<UseBuildConfiguration></UseBuildConfiguration>
<UseCPUArchitecture>AutoDetect</UseCPUArchitecture>
<AdditionalFilesToInclude>..\..\..\tools\FSharp\*.dll;..\..\..\tools\FSharp\*.exe</AdditionalFilesToInclude>
</ProjectConfiguration>
11 changes: 11 additions & 0 deletions src/test/Spec.KataNumberToLCD/Specs.fs
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
module KataNumberToLCD.Specs

open NaturalSpec

open Model

[<Scenario>]
let ``Should work`` () =
Given ""
|> It should equal ""
|> Verify
4 changes: 4 additions & 0 deletions src/test/Spec.KataNumberToLCD/packages.config
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="2.5.10.11092" />
</packages>

0 comments on commit 4af04ca

Please sign in to comment.