Antacid generally contains sodium bicarbonate in it.
sodium bicarbonate is a base
Now if we add ant acid in water there will be small amount of effervescence in the glass of water.
However if we add the same ant acid in sprite then there will be large amount of uncontrolled effervescence in the glass.
so we can easily distinguish the two types of glass content.