first test for number to word written... need to keep writing until I make it run successfully :)
added a number enum.... need to work on this more but have to push now to be able to work on it from other machines tomorrow... basic idea is to parse out each segment so it can be tagged appropriately and within each segment generate the appropriate values for each digit
added the tens enum as well... time for bed
this code is starting to look a little ugly... I'll try to find a prettier way. It really is time for bed now
couldn't help but change more code before bed.... I'm thinking about a more awesome way to do this... toying with splitting the number into segments preloop (makes more sense to me) into a list or array of strings at which point I will convert each by its index.... of course storing each segment in the appropriate index of the array for its enum mapping.... if i can find a really cool way to do that.... thats the new plan
so now my wife is mad at me for being up late. I must leave you problem17... but I will defeat you. I know what I want to do and how to do it. you may not build now, but one day you will build and you will be glorious
a little more work to get the segments broken up. time for work
did some more modifications while at work. formatting as N0 and splitting on commas is a much better idea
getting a little bit closer but still not quite there. I have the basic pattern I want to use, but its not quite complete
just decided how to dynamically know which index i'm on when converting the segment
rework of the test to make it easier to debug... numbers to words now has the ability to pass a very very basic test
passing an additional test for two digit numbers... more tweaks on the helper
passing another test... just had a little bit of a panic attack realizing that 'eleven' and 'Ten-One' are not the same..... which means all of the values 10-19 will need their own unique way of being accessed.... which comes with some interesting issues given the current setup I have going on
first stab at accounting for eleven through nineteen. A bit more to go and some more tests to write
well.... this isn't working and I think I just decided why.
passed the 'Twelve' test. Going to write more and probably split the existing tests up a bit.
some more tests for the number to word conversion. thus far all tests are passing
adjusting the static Hundred in the Append. newest test makes it obvious that I'm processing the segments in the wrong order.
the issue was with some old code I had from a previous iteration. removed and fixed rather easily. Test of thousands is not passing
hit the resharper 'remove unused directives in file' button. nice and clean now