Skip to content

Content Tagged "case"

Page 1 of 1

Android: Provide Local Asset in Testing

March 13, 2015Category: Software
In the past few days I had a little bit of a problem: InstrumentationTestCase gives access to local assets while AndroidTestCase gives access to getAssets() for assets specific to testing. I had a scenario to test where I get a file from my local src/androidTest/assets directory while the code…

C Optimisation - 2005 style

October 10, 2014Category: Software
TL;DR : This post is about an experience I had in 2004 and it’s part of my consolidating technical posts I wrote in time. It may or may not be relevant to today’s technologies. I was trying to optimize a bit of code and found out that 2 if() statements are quicker than a case with true/false. and an…

All tags