Acidify the Lassaigne’s extract with nitric acid and add a few drops of freshly prepared chlorine water. Free Br2, I2 will be evolved. Shake this solution with carbon disulphide or carbon tetrachloride. The liberated halogens (Br2, I2) will dissolve in it giving as orange or brown colour for bromine and violet colour for iodine.
2NaBr+Cl2⟶2NaCl+Br2(Brown)2NaI+Cl2⟶2NaCl+I2(Violet)