Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Test Driven Development & Unit Testing for thinBASIC

  1. #11
    Thanks, Rob

  2. #12
    Petr (and all),
    This all gave me an idea , it makes use of the dynamic character of JIT compiling.

    In this example, we want to find (just a very simple example) the Golden Ratio value -- but we forgot how to calculate the roots of a parabola.
    We let TB sample the thing ( we know (cheating a little) that a DIN A4 etc.. using this ratio , so we only start looking between 0 and 3. (we know it is around 3/2)
    TB samples till you agree with accurancy (epsilon) , or TB finds no deeper solution -- in both cases you answer with something else than "y".
    TB sets up a DLL now with a function GoldenRatio(x) ...

    That's it -- simple as can be.
    (needs RTL32.INC)

    best Rob
    Attached Files Attached Files
    Last edited by RobbeK; 19-01-2014 at 09:11.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. OpenB3D Engine Wrapper for ThinBasic (open testing)
    By Artemka in forum TBGL Scripts and Projects
    Replies: 4
    Last Post: 12-03-2013, 23:38
  2. Astronomical Unit (module) simple example for testing :)
    By largo_winch in forum thinBasic vaporware
    Replies: 1
    Last Post: 24-12-2011, 11:21
  3. Simple unit for UDT list in ThinBASIC
    By Petr Schreiber in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 3
    Last Post: 10-07-2010, 21:21
  4. Development for thinBasic
    By kryton9 in forum Other languages
    Replies: 12
    Last Post: 06-08-2008, 17:40
  5. Speed2, a comparative speed test through different development environments
    By RobertoBianchi in forum Suggestions/Ideas discussions
    Replies: 28
    Last Post: 21-02-2008, 22:43

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •