And on another site it says: "You can try collecting the gases with inverted small test tubes, and use a burning splint to test for hydrogen (the tube will pop) and a glowing splint to test for oxygen (the splint will burst into flame). "
http://www.wcsscience.com/electrolysis/ofwater.html