Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

One of my colleagues has added a test project to the master branch that includes a Moq reference. Its not even busing used at the time, simply having the reference causes the build and website to fail:...
kbd's user avatar
  • 4,539
-1 votes
1 answer
63 views

Problem to solve: given an array or sequence of numbers the goal is to find the Max number obtained by the multiplication of some 2 numbers in that sequence. example of inputs and outputs Input: 2 ...
Simone Farid's user avatar
5 votes
4 answers
1k views

I'd like to know how should I do to test simple C# expressions 1) in Visual Studio and 2) not in debug, in design mode Say, I want to verify what will return this code ?DateTime.ParseExact("...
serge's user avatar
  • 15.4k
1 vote
4 answers
4k views

this is my code for the hackerRank challenge write a function def is_leap(year): x=str(year) y=int(x[-2:]) return y%4==0 or y%400==0 and y%100!=0 year = int(input()) print(is_leap(year)) ...
manel bouazza's user avatar
0 votes
0 answers
75 views

What to your opinion bases the mechanism behind Codeacademy? How do you use code in order to check if a few lines of code are serving a certain purpose, in a certain wanted way? I'm not looking for a ...
Ido Sofi's user avatar
1 vote
1 answer
163 views

I am trying to get into the good habit of testing my code, I did some exercise on the subject, but everything was so simple that, when I tried to apply what I learned on a real-world application I was ...
Alpe89's user avatar
  • 299
-1 votes
2 answers
52 views

This code is for a maximum pairwise product, I've been testing it but I have come across some issues. import sys import random while True: a=int(random.randrange(1,1000000,101)) keys =[] #...
Ahmed Adel's user avatar
0 votes
1 answer
1k views

I use the following code to disable right click on images in my website: //disable right click on images $(document).ready(function(){ $(document).bind("contextmenu",function(e){ if(e....
Hazra Hameed's user avatar
1 vote
1 answer
199 views

I am working on a automotive project which has different modules for different functionalities. Each module has a set of predefined APIs used to achive the functionality that it is intended for. (If ...
Manojkumar's user avatar
0 votes
0 answers
49 views

Your challenge is to implement the game described here. Where the description refers to picking a number, it means the computer should pick a random number between 1 and 10. The computer ...
Chao's user avatar
  • 905
2 votes
2 answers
78 views

While the refactoring step of test driven development should always involve another full run of tests for the given functionality, what is your approach about preventing possible regressions beyond ...
Sebas's user avatar
  • 21.6k
5 votes
3 answers
2k views

Using Python I can test my code in the terminal / command line by typing python python> print "hello world" I would like to do this with PHP too, but when typing: php echo "hello world"; it does ...
hsmit's user avatar
  • 3,906
5 votes
7 answers
1k views

I'm learning Java by reading "Head First Java" and by doing all the puzzles and excercies. In the book they recommend to write TestDrive classes to test the code and clases I've written, that's one ...
Eduardo Rascon's user avatar
1 vote
1 answer
96 views

Our code-base has a lot of COM objects, so typically we'll have something like: //this is the IDL-generated IGetTime interface header #include "gettime.h" //our COM class implementation of IGetTime ...
Mr. Boy's user avatar
  • 64.5k