Browse Source

Added example code to the script file in BFLib.

Renamed the script file in BFLibCore. Both script files are now in sync.
master
Craig Oates 4 years ago
parent
commit
bcbe6cb804
5 changed files with 19 additions and 10 deletions
  1. +1
    -1
      BFLib/BFLib.fsproj
  2. +17
    -0
      BFLib/ExampleScript.fsx
  3. +0
    -8
      BFLib/Script.fsx
  4. +1
    -1
      BFLibCore/BFLibCore.fsproj
  5. +0
    -0
      BFLibCore/ExampleScript.fsx

+ 1
- 1
BFLib/BFLib.fsproj View File

@ -53,7 +53,7 @@
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="FunkyFish.fs" />
<None Include="Script.fsx" />
<None Include="ExampleScript.fsx" />
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>


+ 17
- 0
BFLib/ExampleScript.fsx View File

@ -0,0 +1,17 @@
// Use this script file to test out the BFLibCore functions in F# Interactive (no need to compile).
#load "FunkyFish.fs"
open FunkyFish
let exampleOne = LibraryTest1 2 4
printfn "The result for LibraryTest1 is %i" exampleOne
let exampleTwo = LibraryTest2 3 20 2
printfn "The result for LibraryTest2 is %i" exampleTwo
let exampleThree = LibraryTest3 "George"
printfn "The result for LibraryTest3 is %s" exampleThree
// Feel free to add more functions and test them out here.
// Once they are working as intended you can move them over to ConsoleCommands in BrittleFish.

+ 0
- 8
BFLib/Script.fsx View File

@ -1,8 +0,0 @@
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.
#load "FunkyFish.fs"
open FunkyFish
// Feel free to add your own code in here...

+ 1
- 1
BFLibCore/BFLibCore.fsproj View File

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<None Include="ExampleScripts.fsx" />
<None Include="ExampleScript.fsx" />
<Compile Include="FunkyFishCore.fs" />
</ItemGroup>


BFLibCore/ExampleScripts.fsx → BFLibCore/ExampleScript.fsx View File


Loading…
Cancel
Save